language: cpp cache: apt: true directories: - $HOME/Library/Caches/Homebrew matrix: include: - os: linux dist: xenial sudo: required - os: osx osx_image: xcode7.2 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 env: matrix: - BUILD_TYPE=Release UPNP=ON MAKE_UPNP=yes - BUILD_TYPE=Release UPNP=OFF MAKE_UPNP=no 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=${MAKE_UPNP} ; fi