forked from akashihi/stlcache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (34 loc) · 1.07 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
dist: trusty
sudo: required
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- doxygen
before_script:
- wget -O cmake.sh https://cmake.org/files/v3.11/cmake-3.11.1-Linux-x86_64.sh
- sudo sh cmake.sh --skip-license --exclude-subdir --prefix=/usr/local
- wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz
- tar -xzvf boost_1_66_0.tar.gz >/dev/null
- cd boost_1_66_0
- sudo sh bootstrap.sh --prefix=/usr/local --with-libraries=system,thread,test
- sudo ./b2 install link=static threading=multi variant=release
- cd ..
script:
# Link gcc-6 and g++-6 to their standard commands
- sudo ln -s /usr/bin/gcc-6 /usr/local/bin/gcc
- sudo ln -s /usr/bin/g++-6 /usr/local/bin/g++
# Export CC and CXX to tell cmake which compiler to use
- export CC=/usr/bin/gcc-6
- export CXX=/usr/bin/g++-6
# Check versions of gcc, g++ and cmake
- gcc -v && g++ -v && /usr/local/bin/cmake --version
# Run your build commands next
- /usr/local/bin/cmake ./
- make
- make test