-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
60 lines (55 loc) · 1.84 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
sudo: required
dist: trusty
language: cpp
env:
global:
- PATH="/usr/local/cmake-3.13/bin:$PATH"
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env:
- C_COMPILER=gcc-8
- CXX_COMPILER=g++-8
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- g++-8
- clang-5.0
env:
- C_COMPILER=clang-5.0
- CXX_COMPILER=clang++-5.0
before_install:
- wget -O cmake.sh https://cmake.org/files/v3.13/cmake-3.13.1-Linux-x86_64.sh
- sudo mkdir /usr/local/cmake-3.13
- sudo sh cmake.sh --skip-license --exclude-subdir --prefix=/usr/local/cmake-3.13
- wget --output-document=boost-trunk.tar.bz2 http://ufpr.dl.sourceforge.net/project/boost/boost/1.65.0/boost_1_65_0.tar.bz2
- export BOOST_ROOT="$TRAVIS_BUILD_DIR/../boost-trunk"
- mkdir -p $BOOST_ROOT
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 10
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 10
- sudo update-alternatives --set gcc "/usr/bin/gcc-8"
- sudo update-alternatives --set g++ "/usr/bin/g++-8"
- tar jxf boost-trunk.tar.bz2 --strip-components=1 -C $BOOST_ROOT
- (cd $BOOST_ROOT; ./bootstrap.sh --with-libraries=thread,system,chrono,fiber,atomic,context,filesystem,date_time)
- (cd $BOOST_ROOT; ./b2 threading=multi --prefix=$BOOST_ROOT -d0 install)
- uname -a
- pwd
script:
- mkdir build
- cd build
- env CC=${C_COMPILER} CXX=${CXX_COMPILER} cmake .. -DBOOST_ROOT=$BOOST_ROOT -DCMAKE_BUILD_TYPE=Release -DENABLE_COVERAGE:BOOL=TRUE
- echo "We have" `nproc` "cores here"
- make -j `nproc`
- ctest -j `nproc` -V
after_success:
- bash <(curl -s https://codecov.io/bash)