Skip to content

Commit 73579ed

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: #1706
1 parent c0ef463 commit 73579ed

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.travis.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ jobs:
133133

134134
# Ubuntu Linux with glibc using g++-5, debug mode
135135
- stage: Test different OS/CXX/Flags
136+
if: type = cron
136137
os: linux
137138
sudo: false
138139
compiler: gcc
@@ -149,6 +150,7 @@ jobs:
149150
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
150151
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
151152
env:
153+
- NAME="DEBUG"
152154
- COMPILER="ccache /usr/bin/g++-5"
153155
- EXTRA_CXXFLAGS="-DDEBUG"
154156
script: echo "Not running any tests for a debug build."
@@ -179,8 +181,9 @@ jobs:
179181
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DNDEBUG"
180182
- CCACHE_CPP2=yes
181183

182-
# Ubuntu Linux with glibc using clang++-3.7, debug mode, disable USE_DSTRING
184+
# Ubuntu Linux with glibc using clang++-3.7, debug mode
183185
- stage: Test different OS/CXX/Flags
186+
if: type = cron
184187
os: linux
185188
sudo: false
186189
compiler: clang
@@ -200,8 +203,9 @@ jobs:
200203
- export CCACHE_CPP2=yes
201204
# env: COMPILER=clang++-3.7 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
202205
env:
206+
- NAME="DEBUG"
203207
- COMPILER="ccache /usr/bin/clang++-3.7"
204-
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DDEBUG -DUSE_STD_STRING"
208+
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DDEBUG"
205209
- CCACHE_CPP2=yes
206210
script: echo "Not running any tests for a debug build."
207211

@@ -244,6 +248,29 @@ jobs:
244248
- cmake --build build -- -j4
245249
script: (cd build; ctest -V -L CORE -j2)
246250

251+
# Ubuntu Linux with glibc using g++-5, disable USE_DSTRING
252+
- stage: Test different OS/CXX/Flags
253+
if: type = cron
254+
os: linux
255+
sudo: false
256+
compiler: gcc
257+
cache: ccache
258+
addons:
259+
apt:
260+
sources:
261+
- ubuntu-toolchain-r-test
262+
packages:
263+
- libwww-perl
264+
- g++-5
265+
- libubsan0
266+
- parallel
267+
before_install:
268+
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
269+
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
270+
env:
271+
- NAME="USE_STD_STRING"
272+
- COMPILER="ccache /usr/bin/g++-5"
273+
- EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG -DUSE_STD_STRING"
247274

248275
# Run Coverity
249276
- stage: Test different OS/CXX/Flags

0 commit comments

Comments
 (0)