language: c
os: osx
jobs:
    include:
        -   os: osx
            osx_image: xcode12.2
            addons:
                homebrew:
                    packages: ncurses
            install:
                - cmake -S . -B build -G "Unix Makefiles" -DCOVERAGE=ON -DHOMEBREW_NCURSES=ON
            script:
                - cmake --build build --target all test
            after_success:
                - bash <(curl -s https://codecov.io/bash)
        -   os: linux
            dist: focal
            install:
                - cmake -S . -B build -G "Unix Makefiles"
            script:
                - cmake --build build --target all test

language: c
jobs:
    include:
        -   os: osx
            osx_image: xcode12.2
            addons:
                homebrew:
                    packages: ncurses
            install:
                - cmake -S . -B build -G "Unix Makefiles" -DCOVERAGE=ON -DHOMEBREW_NCURSES=ON
            script:
                - cmake --build build --target all test
            after_success:
                - bash <(curl -s https://codecov.io/bash)

        -   os: linux
            dist: focal
            before_install:
                - sudo apt-get -y install libbsd-dev
            install:
                - cmake -S . -B build -G "Unix Makefiles"
            script:
                - cmake --build build --target all test

Install libbsd in Travis CI Linux build.
Install libbsd in Travis CI Linux build.

Build fails since libbsd-dev package isn't installed on Ubuntu Focal
20.04 by default.
