-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
66 lines (56 loc) · 1.85 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
os: linux
dist: trusty
language: cpp
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- wget
env:
global:
- BOOST_ROOT=/home/travis/lib/boost
- RANGE_V3_ROOT=/home/travis/lib/range-v3
script:
- cd $TRAVIS_BUILD_DIR
- /home/travis/lib/bin/b2 toolset=gcc -j2
matrix:
include:
- name: "g++-4.8"
- name: "g++-5"
install:
- sudo apt-get install -y g++-5
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
- name: "g++-6"
install:
- sudo apt-get install -y g++-6
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6
- name: "g++-7"
install:
- sudo apt-get install -y g++-7
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- name: "g++-8"
install:
- sudo apt-get install -y g++-8
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8
before_install:
- mkdir -p /tmp/deps
- |
echo "Installing range-v3"
cd /tmp/deps
wget https://github.com/ericniebler/range-v3/archive/0.1.1.tar.gz -O range-v3.tar.gz
mkdir -p /home/travis/lib/range-v3
tar xzf range-v3.tar.gz --strip-components=1 -C /home/travis/lib/range-v3
rm -f range-v3.tar.gz
- |
echo "Installing boost"
cd /tmp/deps
wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz -O boost.tar.gz
mkdir -p /home/travis/lib/boost
tar xzf boost.tar.gz --strip-components=1 -C /home/travis/lib/boost
rm -f boost.tar.gz
cd /home/travis/lib/boost/tools/build
./bootstrap.sh && ./b2 install --prefix=/home/travis/lib
notifications:
email: false