-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (74 loc) · 2.24 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 Benedek Thaler 2015-2016
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
language: cpp
sudo: false
branches:
only:
- master
env:
matrix:
# Workaround for: https://github.com/travis-ci/travis-ci/issues/4681
- TRAVIS_EXTRA_JOB_WORKAROUND=true
matrix:
include:
# GCC 4.8
- env: CXX=g++-4.8 CXX_PATH=/usr/bin/g++-4.8 CXX_NAME=gcc VARIANT=sanitize ARCH=64
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
# GCC 5.3
- env: CXX=g++-5 CXX_PATH=/usr/bin/g++-5 CXX_NAME=gcc VARIANT=sanitize ARCH=64
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
# GCC 5.3 -- 32 bit
- env: CXX=g++-5 CXX_PATH=/usr/bin/g++-5 CXX_NAME=gcc VARIANT=sanitize ARCH=32
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- g++-5-multilib
- linux-libc-dev:i386
# Xcode 6.4
- env: CXX=clang++ CXX_PATH=clang++ CXX_NAME=clang VARIANT=release ARCH=64
os: osx
osx_image: xcode6.4
exclude:
- env: TRAVIS_EXTRA_JOB_WORKAROUND=true
cache:
directories:
- deps
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
# Install Boost
- |
if [ ! -d boost ]; then
BOOST_URL="http://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.gz"
mkdir boost && travis_retry wget --quiet -O - ${BOOST_URL} | tar --strip-components=1 -xz -C boost
fi
- export BOOST_ROOT=${DEPS_DIR}/boost
- export BOOST_BUILD_PATH=${BOOST_ROOT}
# Setup Boost.Build
- |
echo "using ${CXX_NAME} : : ${CXX_PATH} ;" > ${HOME}/user-config.jam
cd ${BOOST_ROOT}
./bootstrap.sh --with-libraries=serialization # build b2
./b2 toolset=${CXX_NAME} address-model=${ARCH} -j4 # build libraries
export PATH=${BOOST_ROOT}:${PATH}
- cd ${TRAVIS_BUILD_DIR}
script:
- cd test
- ${BOOST_ROOT}/b2 toolset=${CXX_NAME} variant=${VARIANT} address-model=${ARCH} architecture=x86 -j2