2016-01-14 04:16:18 +03:00
language : cpp
cache :
apt : true
os :
2017-11-17 20:43:00 +03:00
- linux
2017-12-06 02:12:27 +03:00
#- osx
2016-01-14 04:16:18 +03:00
dist : trusty
2017-11-17 20:43:00 +03: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 04:16:18 +03:00
addons :
apt :
packages :
2017-11-17 20:43:00 +03: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 16:09:40 +03:00
before_install :
2017-11-17 20:43:00 +03: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 04:16:18 +03:00
script :
2017-11-17 20:43:00 +03: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