-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
45 lines (45 loc) · 1.18 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
dist: trusty
sudo: required
language: generic
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- g++-7
- clang-5.0
env:
- MATRIX_EVAL="export COMPILER_NAME=clang++ && export CXX=clang++-5.0"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7-multilib
env:
- MATRIX_EVAL="export COMPILER_NAME=g++ && export CXX=/usr/bin/g++-7"
git:
submodules: false
before_install:
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- eval "${MATRIX_EVAL}"
- if [ "$COMPILER_NAME" = "g++" ]; then
sudo ln -s /usr/bin/g++-7 /usr/local/bin/g++ && g++ -v;
elif [ "$COMPILER_NAME" = "clang++" ]; then
clang++ -v;
fi
script:
- chmod +x build.sh
- travis_wait 75 bash build.sh
after_success:
- if [ "$COMPILER_NAME" = "g++" ]; then
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports";
fi
notifications:
email: false