Skip to content

Commit 39f9f5c

Browse files
committed
Update travis file from linux_debug. Enable GCC Debug build
1 parent 425ce0a commit 39f9f5c

File tree

1 file changed

+48
-18
lines changed

1 file changed

+48
-18
lines changed

.travis.yml

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Based on https://github.com/ldionne/hana/blob/master/.travis.yml
12
dist: xenial
23
sudo: required
34
cache: ccache
@@ -11,26 +12,55 @@ language: cpp
1112

1213
os:
1314
- linux
14-
compiler:
15-
- g++
16-
env:
17-
global:
18-
- LANG="en_US.UTF-8"
19-
matrix:
20-
- TARGET_CPU=x64 BUILD_CONFIGURATION=Release
21-
- TARGET_CPU=x86 BUILD_CONFIGURATION=Release
22-
23-
addons:
24-
apt:
25-
sources:
26-
- sourceline: 'ppa:ubuntu-toolchain-r/test'
27-
packages:
28-
- g++-7
29-
30-
install: export CXX="g++-7"
15+
16+
matrix:
17+
include:
18+
- env: C_COMPILER=gcc-7 CXX_COMPILER=g++-7 TARGET_CPU=x64 BUILD_CONFIGURATION=Release
19+
addons: &gcc7
20+
apt:
21+
sources:
22+
- sourceline: 'ppa:ubuntu-toolchain-r/test'
23+
packages:
24+
- g++-7
25+
26+
- env: C_COMPILER=gcc-7 CXX_COMPILER=g++-7 TARGET_CPU=x86 BUILD_CONFIGURATION=Release
27+
addons: *gcc7
28+
29+
- env: C_COMPILER=gcc-7 CXX_COMPILER=g++-7 TARGET_CPU=x64 BUILD_CONFIGURATION=Debug
30+
addons: *gcc7
31+
32+
- env: C_COMPILER=gcc-7 CXX_COMPILER=g++-7 TARGET_CPU=x86 BUILD_CONFIGURATION=Debug
33+
addons: *gcc7
34+
35+
# - env: C_COMPILER=clang-5.0 CXX_COMPILER=clang++-5.0 TARGET_CPU=x64 BUILD_CONFIGURATION=Release
36+
# addons: &clang50
37+
# apt:
38+
# sources:
39+
# - llvm-toolchain-trusty-5.0
40+
# packages:
41+
# - clang-5.0
42+
43+
# - env: C_COMPILER=clang-5.0 CXX_COMPILER=clang++-5.0 TARGET_CPU=x84 BUILD_CONFIGURATION=Release
44+
# addons: *clang50
45+
46+
# - env: C_COMPILER=clang-6.0 CXX_COMPILER=clang++-6.0 TARGET_CPU=x64 BUILD_CONFIGURATION=Release
47+
# addons: &clang60
48+
# apt:
49+
# sources:
50+
# - llvm-toolchain-trusty-6.0
51+
# packages:
52+
# - clang-6.0
53+
54+
# - env: C_COMPILER=clang-6.0 CXX_COMPILER=clang++-6.0 TARGET_CPU=x84 BUILD_CONFIGURATION=Release
55+
# addons: *clang60
56+
57+
58+
install:
59+
- export CC=${C_COMPILER}
60+
- export CXX=${CXX_COMPILER}
61+
- ${CXX} --version
3162

3263
before_script:
33-
- g++ --version
3464
- export core_count=$(nproc || echo 4) && echo core_count = $core_count
3565
- mkdir bin
3666
- cd bin

0 commit comments

Comments
 (0)