-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
62 lines (55 loc) · 1.2 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
dist: trusty
language: cpp
compiler:
- g++-6
sudo: false
os:
- linux
branches:
only:
- master
notifications:
email:
recipients:
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- __="link=shared" FLAGS="link=shared"
- __="link=static" FLAGS="link=static"
cache:
apt: true
directories:
- boost
before_install:
- if [ ! -f "boost/bootstrap.sh" ]; then
wget -O boost.tar.bz2 https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2;
tar xf boost.tar.bz2 -C boost;
mv boost/boost_1_71_0 .;
rm -rf boost;
mv boost_1_71_0 boost;
ls -l;
ls -l boost;
cd boost;
./bootstrap.sh;
cd ..;
fi;
- rm -rf bin.v2/libs/outcome
- rm -rf boost/boost/outcome
- rm -rf boost/libs/outcome
- ln -s ../.. boost/libs/outcome
- ls -l boost/libs/outcome/
script:
- if [ "$CXX" = "g++" ]; then FLAGS="$FLAGS toolset=gcc-6"; fi;
- if [ "$CXX" = "clang++" ]; then FLAGS="$FLAGS toolset=clang-5.0 cxxflags=--std=c++14"; fi;
- cd boost
- ./b2 headers
- ./b2 libs/outcome/test $FLAGS
- rm -rf bin.v2/libs/outcome
- rm -rf boost/libs/outcome
after_success:
after_failure: