forked from NilFoundation/marshalling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
169 lines (165 loc) · 5.53 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
dist: trusty
language: cpp
sudo: true
notifications:
email:
recipients:
on_success: change
on_failure: always
env:
global: _GLOBAL_BUILD="-DBUILD_TESTS=TRUE"
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.7
env: _CC=gcc-4.7 _CXX=g++-4.7
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env: _CC=gcc-4.8 _CXX=g++-4.8
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env: _CC=gcc-4.9 _CXX=g++-4.9
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env: _CC=gcc-5 _CXX=g++-5
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env: _CC=gcc-5 _CXX=g++-5 _BUILD="-DCMAKE_CXX_STANDARD=14"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env: _CC=gcc-6 _CXX=g++-6
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env: _CC=gcc-6 _CXX=g++-6 _BUILD="-DCMAKE_CXX_STANDARD=14"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env: _CC=gcc-7 _CXX=g++-7
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env: _CC=gcc-7 _CXX=g++-7 _BUILD="-DCMAKE_CXX_STANDARD=14"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
- g++-5
env: _CC=clang-3.8 _CXX=clang++-3.8 _BUILD="-DCMAKE_CXX_STANDARD=14"
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-3.9
- ubuntu-toolchain-r-test
packages:
- clang-3.9
- g++-5
env: _CC=clang-3.9 _CXX=clang++-3.9 _BUILD="-DCMAKE_CXX_STANDARD=14"
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
- ubuntu-toolchain-r-test
packages:
- clang-4.0
- g++-5
env: _CC=clang-4.0 _CXX=clang++-4.0 _BUILD="-DCMAKE_CXX_STANDARD=14"
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
- ubuntu-toolchain-r-test
packages:
- clang-5.0
- g++-5
env: _CC=clang-5.0 _CXX=clang++-5.0 _BUILD="-DCMAKE_CXX_STANDARD=14"
before_install:
- sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
- sudo add-apt-repository -y ppa:mhier/libboost-latest
- sudo apt-get update -q
- sudo apt-get install libboost1.67-dev libc++-dev cmake cmake-data -y
- if [[ ${_CC} == clang* ]]; then sudo apt-get remove gcc-4.8 g++-4.8 -y; fi
script:
- echo "------------------ Debug build ------------------"
- mkdir build.debug
- cd build.debug
- CC=${_CC} CXX=${_CXX} cmake .. ${_BUILD} ${_GLOBAL_BUILD}
- if [[ $TRAVIS_OS_NAME == linux ]]; then
VERBOSE=1 sudo make -j$(nproc) tests;
elif [[ $TRAVIS_OS_NAME == osx ]]; then
VERBOSE=1 sudo make -j$(sysctl -n hw.ncpu) tests;
fi
- ctest
- cd ..
- echo "------------------ Release build ------------------"
- mkdir build.release
- cd build.release
- CC=${_CC} CXX=${_CXX} cmake .. ${_BUILD} ${_GLOBAL_BUILD} -DCMAKE_BUILD_TYPE=Release
- if [[ $TRAVIS_OS_NAME == linux ]]; then
VERBOSE=1 sudo make -j$(nproc) tests;
elif [[ $TRAVIS_OS_NAME == osx ]]; then
VERBOSE=1 sudo make -j$(sysctl -n hw.ncpu) tests;
fi
- ctest
- cd ..
- echo "------------------ MinSize Release build ------------------"
- mkdir build.min_size
- cd build.min_size
- CC=${_CC} CXX=${_CXX} cmake .. ${_BUILD} ${_GLOBAL_BUILD} -DCMAKE_BUILD_TYPE=MinSizeRel
- if [[ $TRAVIS_OS_NAME == linux ]]; then
VERBOSE=1 sudo make -j$(nproc) tests;
elif [[ $TRAVIS_OS_NAME == osx ]]; then
VERBOSE=1 sudo make -j$(sysctl -n hw.ncpu) tests;
fi
- ctest
- cd ..