forked from tplgy/cppcodec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (76 loc) · 2.38 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
language: cpp
# sources list: https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json,
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'g++-4.8', 'libstdc++-4.8-dev', 'cmake' ]
env: CMAKE_BUILD_TYPE=DEBUG GXX=4.8
- os: linux
compiler: gcc
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'g++-4.8', 'libstdc++-4.8-dev', 'cmake' ]
env: CMAKE_BUILD_TYPE=RELEASE GXX=4.8
- os: linux
compiler: gcc
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'g++-4.9', 'libstdc++-4.9-dev', 'cmake' ]
env: CMAKE_BUILD_TYPE=DEBUG GXX=4.9
- os: linux
compiler: gcc
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'g++-4.9', 'libstdc++-4.9-dev', 'cmake' ]
env: CMAKE_BUILD_TYPE=RELEASE GXX=4.9
- os: linux
compiler: gcc
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'g++-5', 'libstdc++-5-dev', 'cmake' ]
env: CMAKE_BUILD_TYPE=DEBUG GXX=5
- os: linux
compiler: gcc
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'g++-5', 'libstdc++-5-dev', 'cmake' ]
env: CMAKE_BUILD_TYPE=RELEASE GXX=5
- os: linux
compiler: clang
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'libstdc++-4.8-dev', 'cmake' ]
env: CMAKE_BUILD_TYPE=DEBUG
- os: linux
compiler: clang
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'kalakris-cmake' ]
packages: [ 'libstdc++-4.8-dev', 'cmake' ]
env: CMAKE_BUILD_TYPE=RELEASE
# container-based builds
sudo: false
before_install:
- env
- export SRC_DIR="`pwd`"
- if [ "$CXX" = "g++" ]; then export CXX="g++-$GXX" CC="gcc-$GXX"; fi
script:
- $CXX --version
- cmake --version
- mkdir "$TRAVIS_BUILD_DIR/build"
- cd "$TRAVIS_BUILD_DIR/build"
- pwd
- cmake "$SRC_DIR"
- make
- CTEST_OUTPUT_ON_FAILURE=1 make test