-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
74 lines (58 loc) · 1.54 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
67
68
69
70
71
72
73
74
#dist: trusty
sudo: false
cache:
directories:
- $HOME/boost
language: cpp
compiler: clang
os: linux
env:
global:
# Workaround for https://github.com/travis-ci/travis-ci/issues/4681
matrix:
- TRAVIS_EMPTY_JOB_WORKAROUND=true
matrix:
exclude:
- env: TRAVIS_EMPTY_JOB_WORKAROUND=true
include:
# Clang 3.7
- env: VARIANT=debug
compiler: clang
addons: &clang37
apt:
packages: ["clang-3.7", "libc++-dev"]
sources: &sources
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
- env: VARIANT=develop
compiler: clang
addons: *clang37
# gcc-5
- env: VARIANT=debug
compiler: gcc
addons: &gcc5
apt:
packages: &gcc5-packages
- g++-5
- libstdc++-5-dev
- gdb
sources: *sources
- env: VARIANT=develop
compiler: gcc
addons: *gcc5
before_install:
- set -e # Fail the whole script whenever any command fails
install:
- bash ci/install_boost.sh
- if [[ "${CC}" == "clang" ]]; then bash ci/install_llvm.sh ; fi
# check what has been installed by listing contents of Boost folder
before_script:
- ls -al $HOME/boost
script:
- cp ci/project-config.jam project-config.jam
- export BOOST_ROOT=$HOME/boost
- export PATH="$HOME/boost":$PATH
- export LD_LIBRARY_PATH="$HOME/local/lib":$LD_LIBRARY_PATH
- b2 cxxflags="-std=c++1y" toolset=$CC $VARIANT --debug-configuration -j2 -q
before_cache:
- pushd $HOME/boost && git clean -dfx && popd