Skip to content

Commit d282ba4

Browse files
committed
Move more Travis jobs to cron-only mode
Rarely used configuration options (aka preprocessor defines) that are not generally used in production settings can safely be tested at cron-defined intervals only rather than upon every PR/change to a PR. The remaining non-cron builds are: {GCC, Clang} x {Linux, OS X} + CMake/GCC/Linux. Fixes: diffblue#1706
1 parent f8cc2a1 commit d282ba4

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.travis.yml

+29-2
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ jobs:
155155

156156
# Ubuntu Linux with glibc using g++-5, debug mode
157157
- stage: Test different OS/CXX/Flags
158+
if: type = cron
158159
os: linux
159160
sudo: false
160161
compiler: gcc
@@ -171,6 +172,7 @@ jobs:
171172
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
172173
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
173174
env:
175+
- NAME="DEBUG"
174176
- COMPILER="ccache /usr/bin/g++-5"
175177
- EXTRA_CXXFLAGS="-DDEBUG"
176178
script: echo "Not running any tests for a debug build."
@@ -201,8 +203,9 @@ jobs:
201203
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DNDEBUG"
202204
- CCACHE_CPP2=yes
203205

204-
# Ubuntu Linux with glibc using clang++-3.7, debug mode, disable USE_DSTRING
206+
# Ubuntu Linux with glibc using clang++-3.7, debug mode
205207
- stage: Test different OS/CXX/Flags
208+
if: type = cron
206209
os: linux
207210
sudo: false
208211
compiler: clang
@@ -222,8 +225,9 @@ jobs:
222225
- export CCACHE_CPP2=yes
223226
# env: COMPILER=clang++-3.7 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
224227
env:
228+
- NAME="DEBUG"
225229
- COMPILER="ccache /usr/bin/clang++-3.7"
226-
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DDEBUG -DUSE_STD_STRING"
230+
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DDEBUG"
227231
- CCACHE_CPP2=yes
228232
script: echo "Not running any tests for a debug build."
229233

@@ -266,6 +270,29 @@ jobs:
266270
- cmake --build build -- -j4
267271
script: (cd build; ctest -V -L CORE -j2)
268272

273+
# Ubuntu Linux with glibc using g++-5, disable USE_DSTRING
274+
- stage: Test different OS/CXX/Flags
275+
if: type = cron
276+
os: linux
277+
sudo: false
278+
compiler: gcc
279+
cache: ccache
280+
addons:
281+
apt:
282+
sources:
283+
- ubuntu-toolchain-r-test
284+
packages:
285+
- libwww-perl
286+
- g++-5
287+
- libubsan0
288+
- parallel
289+
before_install:
290+
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
291+
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
292+
env:
293+
- NAME="USE_STD_STRING"
294+
- COMPILER="ccache /usr/bin/g++-5"
295+
- EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG -DUSE_STD_STRING"
269296

270297
# Run Coverity
271298
- stage: Test different OS/CXX/Flags

0 commit comments

Comments
 (0)