-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
90 lines (83 loc) · 2.83 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright (C) 2016 Daniel James.
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# Use Trusty to get a reasonably recent version of Boost.
sudo: required
dist: trusty
language: c++
matrix:
include:
- compiler: gcc
env: |
USER_CONFIG="using gcc : : g++-4.8 -fsanitize=address ;"
- compiler: gcc
env: |
USER_CONFIG="using gcc : : g++-4.4 ;"
addons:
apt:
packages:
- g++-4.4
- compiler: clang
env: |
USER_CONFIG="using clang : : clang++ -fsanitize=address ;"
- compiler: clang
env: |
USER_CONFIG="using clang : : clang++-3.4 -fsanitize=address ;"
addons:
apt:
sources:
- sourceline: 'ppa:h-rayflood/llvm'
packages:
- clang-3.4
before_script:
- export BOOST_VERSION=1.67.0
- export BOOST_FILENAME=boost_1_67_0
- cd ${HOME}
- echo $USER_CONFIG > user-config.jam
- cat user-config.jam
- export BOOST_ROOT=${HOME}/boost
- |
if [ "$TRAVIS_EVENT_TYPE" == "cron" ]
then
if [ "$TRAVIS_BRANCH" == "master" ]
then
snapshot=master
else
snapshot=develop
fi
else
snapshot=stable
fi
if [ $snapshot == "stable" ]
then
download_url=https://sourceforge.net/projects/boost/files/boost/${BOOST_VERSION}/${BOOST_FILENAME}.tar.bz2/download
else
download_url=$(curl https://api.bintray.com/packages/boostorg/$snapshot/snapshot/files |
python -c "import os.path, sys, json; x = json.load(sys.stdin); print '\n'.join(a['path'] for a in x if os.path.splitext(a['path'])[1] == '.bz2')" |
head -n 1 |
sed "s/^/http:\/\/dl.bintray.com\/boostorg\/$snapshot\//")
fi
mkdir $HOME/download
mkdir $HOME/extract
cd $HOME/download
echo "Downloading ${download_url}"
wget -O boost.tar.bz2 $download_url
cd $HOME/extract
tar -xjf $HOME/download/boost.tar.bz2
mv * ${BOOST_ROOT}
- cd $HOME
- rm -r ${BOOST_ROOT}/tools/quickbook
- mv ${TRAVIS_BUILD_DIR} ${BOOST_ROOT}/tools/quickbook
- cd ${BOOST_ROOT}/tools/build
- mkdir ${HOME}/opt
- ./bootstrap.sh
- ./b2 install --prefix=$HOME/opt
script:
- cd ${BOOST_ROOT}/tools/quickbook/test
- ${HOME}/opt/bin/b2 -j 3 quick
- ${HOME}/opt/bin/b2 -j 3
- cd ${BOOST_ROOT}/tools/quickbook
- ${HOME}/opt/bin/b2 -j 3 dist-bin debug
- cd ${BOOST_ROOT}/tools/quickbook/test/python
- python run_tests.py ${BOOST_ROOT}/dist/bin/quickbook
- ${BOOST_ROOT}/tools/quickbook/build/warning-check