Skip to content

Commit 2caa469

Browse files
committed
Do not mix configuration options
Test configuration options in parallel rather than combining them to make diagnosing problems easier. Don't squash the build matrix as diffblue#1706 suggested earlier. Fixes: diffblue#1706
1 parent d0fd2a9 commit 2caa469

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.travis.yml

+26-2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ jobs:
184184
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
185185
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
186186
env:
187+
- NAME="DEBUG"
187188
- COMPILER="ccache /usr/bin/g++-5"
188189
- EXTRA_CXXFLAGS="-DDEBUG"
189190
script: echo "Not running any tests for a debug build."
@@ -215,7 +216,7 @@ jobs:
215216
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DNDEBUG"
216217
- CCACHE_CPP2=yes
217218

218-
# Ubuntu Linux with glibc using clang++-3.7, debug mode, disable USE_DSTRING
219+
# Ubuntu Linux with glibc using clang++-3.7, debug mode
219220
- stage: Test different OS/CXX/Flags
220221
os: linux
221222
sudo: false
@@ -237,8 +238,9 @@ jobs:
237238
- export CCACHE_CPP2=yes
238239
# env: COMPILER=clang++-3.7 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
239240
env:
241+
- NAME="DEBUG"
240242
- COMPILER="ccache /usr/bin/clang++-3.7"
241-
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DDEBUG -DUSE_STD_STRING"
243+
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DDEBUG"
242244
- CCACHE_CPP2=yes
243245
script: echo "Not running any tests for a debug build."
244246

@@ -282,6 +284,28 @@ jobs:
282284
- cmake --build build -- -j4
283285
script: (cd build; ctest -V -L CORE -j2)
284286

287+
# Ubuntu Linux with glibc using g++-5, disable USE_DSTRING
288+
- stage: Test different OS/CXX/Flags
289+
os: linux
290+
sudo: false
291+
compiler: gcc
292+
cache: ccache
293+
addons:
294+
apt:
295+
sources:
296+
- ubuntu-toolchain-r-test
297+
packages:
298+
- libwww-perl
299+
- g++-5
300+
- libubsan0
301+
- parallel
302+
before_install:
303+
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
304+
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
305+
env:
306+
- NAME="USE_STD_STRING"
307+
- COMPILER="ccache /usr/bin/g++-5"
308+
- EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG -DUSE_STD_STRING"
285309

286310
# Run Coverity
287311
- stage: Test different OS/CXX/Flags

0 commit comments

Comments
 (0)