-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
142 lines (134 loc) · 3.69 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
language: cpp
git:
depth: false
sudo: required
matrix:
include:
- os: linux
before_install:
- eval "${MATRIX_EVAL}"
- $CC --version
- $CXX --version
env:
- BUILD_NAME=GCC-4
- MATRIX_EVAL="export CC=gcc && export CXX=g++"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env:
- BUILD_NAME=GCC-5
- MATRIX_EVAL="export CC=gcc-5 && export CXX=g++-5"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- BUILD_NAME=GCC-6
- MATRIX_EVAL="export CC=gcc-6 && export CXX=g++-6"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- BUILD_NAME=GCC-7
- MATRIX_EVAL="export CC=gcc-7 && export CXX=g++-7"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env:
- BUILD_NAME=GCC-8
- MATRIX_EVAL="export CC=gcc-8 && export CXX=g++-8"
- os: osx
osx_image: xcode9.2
before_install:
- eval "${MATRIX_EVAL}"
- $CC --version
- $CXX --version
env:
- BUILD_NAME=OSX-Clang
- MATRIX_EVAL="export CC=clang && export CXX=clang++"
- os: linux
addons:
apt:
packages:
- clang
before_install:
- eval "${MATRIX_EVAL}"
- $CC --version
- $CXX --version
env:
- BUILD_NAME=Clang-3.4
- MATRIX_EVAL="export CC=clang && export CXX=clang++ && sudo apt-get remove gcc g++"
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-3.9
packages:
- clang-3.9
before_install:
- eval "${MATRIX_EVAL}"
- $CC --version
- $CXX --version
env:
- BUILD_NAME=Clang-3
- MATRIX_EVAL="export CC=clang-3.9 && export CXX=clang++-3.9 && sudo apt-get remove gcc g++"
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
env:
- BUILD_NAME=Clang-4
- MATRIX_EVAL="export CC=clang-4.0 && export CXX=clang++-4.0 && sudo apt-get remove gcc g++"
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env:
- BUILD_NAME=Clang-5
- MATRIX_EVAL="export CC=clang-5.0 && export CXX=clang++-5.0 && sudo apt-get remove gcc g++"
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- clang-6.0
env:
- BUILD_NAME=Clang-6
- MATRIX_EVAL="export CC=clang-6.0 && export CXX=clang++-6.0 && sudo apt-get remove gcc g++"
before_install:
- eval "${MATRIX_EVAL}"
- if [[ $CC == gcc* ]]; then sudo update-alternatives --install $(which gcc) gcc $(which $CC) 100; sudo update-alternatives --install $(which g++) g++ $(which $CXX) 100; fi
- if [[ $CC == clang* ]]; then sudo update-alternatives --install $(which clang) clang $(which $CC) 100; sudo update-alternatives --install $(which clang++) clang++ $(which $CXX) 100; fi
- $CC --version
- $CXX --version
install:
- ./gradlew --console=plain
script:
- ./gradlew --console=plain assemble
- ./gradlew --console=plain check
after_failure:
- shopt -s nullglob
- tail -n+1 {.,lib}/build/tmp/*{Library,Executable,GoogleTestExe}*/*.txt