-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
64 lines (50 loc) · 1.48 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
sudo: false
dist: precise
language: cpp
cache:
directories:
- ${TRAVIS_BUILD_DIR}/deps
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- gdb
env: COMPILER=g++-4.9
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- gdb
env: COMPILER=g++-5
before_install:
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- BOOST_VERSION=1.60.0
- if [[ ! -d ${DEPS_DIR}/boost ]]; then
mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR};
if [[ "${BOOST_VERSION}" == "default" ]]; then BOOST_VERSION=1.60.0; fi;
if [[ "${BOOST_VERSION}" == "1.60.0" ]]; then BOOST_URL="http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.gz"; fi;
if [[ "${BOOST_URL}" != "" ]]; then mkdir boost && travis_retry wget -O - ${BOOST_URL} | tar --strip-components=1 -xz -C boost; fi;
cd boost/tools/build && ./bootstrap.sh && ./b2 install --prefix=${DEPS_DIR}/b2;
cd ${TRAVIS_BUILD_DIR};
fi
- export PATH=${DEPS_DIR}/b2/bin:${PATH}
- export BOOST_ROOT=${DEPS_DIR}/boost
script:
- $CC --version
- $CXX --version
- |-
JAM="using clang : : ${CXX} ;"
- cd test
- touch project-config.jam
- echo "${JAM}" > project-config.jam
- ./test.sh --toolset=clang