forked from splunk/pion
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
66 lines (55 loc) · 1.58 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
sudo: false
addons:
apt:
sources:
- kalakris-cmake
- kubuntu-backports
- boost-latest
packages:
- cmake
- libboost-dev
language: cpp
os:
- linux
- osx
- windows
compiler:
- gcc
- clang
env:
- BUILD_CONFIG=Release
- BUILD_CONFIG=Debug
matrix:
allow_failures:
- compiler: clang
before_install:
- wget https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.gz
- tar zxf boost_1_71_0.tar.gz
- cd boost_1_71_0
- ./bootstrap.sh --prefix=../boost1.71.0 --with-libraries=thread,system,filesystem,regex,test
- ./b2 cxxflags="-std=c++11" -j2 install variant=release link=shared runtime-link=shared
- cd ../
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
export DYLD_LIBRARY_PATH=`pwd`/boost1.71.0/lib:${DYLD_LIBRARY_PATH};
elif [[ "$TRAVIS_OS_NAME" == "windows" ]] ; then
set PATH=%CD%\boost1.71.0\lib:%PATH%;
else
export LD_LIBRARY_PATH=`pwd`/boost1.71.0/lib:${LD_LIBRARY_PATH};
fi
install:
before_script:
- mkdir build-ci
- cd build-ci
- if [[ "$TRAVIS_OS_NAME" == "windows" ]] ; then
cmake .. -DBUILD_UT=ON -DCMAKE_BUILD_TYPE=$BUILD_CONFIG -DBoost_DIR=%CD%\..\boost_1_71_0 -DBoost_INCLUDE_DIR=%CD%\..\boost1.71.0/include -DBOOST_LIBRARYDIR=%CD%\..\boost1.71.0/lib;
else
cmake .. -DBUILD_UT=ON -DCMAKE_BUILD_TYPE=$BUILD_CONFIG -DBoost_DIR=`pwd`/../boost_1_71_0 -DBoost_INCLUDE_DIR=`pwd`/../boost1.71.0/include -DBOOST_LIBRARYDIR=`pwd`/../boost1.71.0/lib;
fi
script:
- cmake --build .
- ctest -VV
notifications:
recipients:
email:
on_success: change
on_failure: always