language: cpp cache: apt: true directories: - $HOME/Library/Caches/Homebrew matrix: include: - os: linux dist: xenial sudo: required env: BUILD_TYPE=Release UPNP=ON - os: linux dist: xenial sudo: required env: BUILD_TYPE=Release UPNP=OFF - os: osx env: UPNP=yes - os: osx env: UPNP=no addons: apt: packages: - build-essential - cmake - g++ - clang - libboost-chrono-dev - libboost-date-time-dev - libboost-filesystem-dev - libboost-program-options-dev - libboost-system-dev - libboost-thread-dev - libminiupnpc-dev - libssl-dev compiler: - g++ - clang++ before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libressl miniupnpc ; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated || brew upgrade ; fi script: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd build && cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DWITH_UPNP=${UPNP} && make ; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make HOMEBREW=1 USE_UPNP=${UPNP} ; fi