language: cpp cache: apt: true os: - linux - osx compiler: - g++ - clang++ 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 env: - BUILD_TYPE=Release UPNP=ON MAKE_UPNP=yes - BUILD_TYPE=Release UPNP=OFF MAKE_UPNP=no before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libressl miniupnpc ; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated boost || brew upgrade boost ; 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=${MAKE_UPNP} ; fi