2016-01-14 01:16:18 +00:00
language : cpp
cache :
apt : true
os :
2017-11-17 17:43:00 +00:00
- linux
2017-12-05 23:12:27 +00:00
#- osx
2016-01-14 01:16:18 +00:00
dist : trusty
2017-11-17 17:43:00 +00:00
sudo : required
compiler :
- g++
- clang++
env :
global :
- MAKEFLAGS="-j 2"
matrix :
- BUILD_TYPE=make UPNP=ON MAKE_UPNP=yes
- BUILD_TYPE=make UPNP=OFF MAKE_UPNP=no
- BUILD_TYPE=cmake UPNP=ON MAKE_UPNP=yes
- BUILD_TYPE=cmake UPNP=OFF MAKE_UPNP=no
matrix :
exclude :
- os : osx
env : BUILD_TYPE=cmake UPNP=ON MAKE_UPNP=yes
- os : osx
env : BUILD_TYPE=cmake UPNP=OFF MAKE_UPNP=no
- os : linux
compiler : clang++
env : BUILD_TYPE=make UPNP=ON MAKE_UPNP=yes
- os : linux
compiler : clang++
env : BUILD_TYPE=make UPNP=OFF MAKE_UPNP=no
2016-01-14 01:16:18 +00:00
addons :
apt :
packages :
2017-11-17 17:43:00 +00:00
- 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
2016-03-29 13:09:40 +00:00
before_install :
2017-11-17 17:43:00 +00:00
- 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 boost || brew upgrade boost ; fi
2016-01-14 01:16:18 +00:00
script :
2017-11-17 17:43:00 +00:00
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_TYPE" == "cmake" ]]; then cd build && cmake -DCMAKE_BUILD_TYPE=Release -DWITH_UPNP=${UPNP} && make ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_TYPE" == "make" ]]; then make USE_UPNP=${MAKE_UPNP} ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make HOMEBREW=1 USE_UPNP=${MAKE_UPNP} ; fi