-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
71 lines (61 loc) · 1.63 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
language: generic
sudo: true
dist: trusty
branches:
only:
- master
before_script:
- cat /proc/cpuinfo
- set -x
- source .travis-cmake-install.sh
- set +x
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_COMPILER=${COMPILER} -DCMAKE_VERBOSE_MAKEFILE=ON -DTRAVIS_BUILD:BOOL=ON ..
script:
- make -j4
- ctest -L c --verbose
#- ctest -L cxx --verbose
- ctest -L c.vs.cxx --verbose
compiler:
- gcc
cache:
apt: true
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- COMPILER=g++-6 C_COMPILER=gcc-6 BUILD_TYPE=Release
# matrix:
# include:
# - env: CXX=g++-5 CC=gcc-5
# addons:
# apt:
# packages:
# - g++-5
# sources: &sources
# - ubuntu-toolchain-r-test
# - llvm-toolchain-precise
# - env: CXX=g++-4.9 CC=gcc-4.9
# addons:
# apt:
# packages:
# - g++-4.9
# sources: *sources
# - env: CXX=clang++-3.8 CC=clang-3.8
# addons:
# apt:
# packages:
# - clang-3.8
# sources: *sources
# sources: *sources
# http://stackoverflow.com/a/35113462
# *sources is a "backreference" to the previous &sources at line 44 --
# the whole tree from under the property marked by &sources is
# copied under the property marked by *sources