Skip to content

Commit 46c286d

Browse files
committed
Travis cron job with HASH_CODE enabled
The existing regression tests would have uncovered the problem if only they had been used in this configuration.
1 parent 5a033e5 commit 46c286d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,35 @@ jobs:
182182
- CCACHE_CPP2=yes
183183
script: echo "Not running any tests for a debug build."
184184

185+
# Ubuntu Linux with glibc using g++-5
186+
- stage: Test different OS/CXX/Flags
187+
os: linux
188+
sudo: false
189+
compiler: gcc
190+
cache: ccache
191+
addons:
192+
apt:
193+
sources:
194+
- ubuntu-toolchain-r-test
195+
packages:
196+
- libwww-perl
197+
- g++-5
198+
- libubsan0
199+
- parallel
200+
before_install:
201+
- |
202+
if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]
203+
then
204+
echo "This is not a cron build and build is not needed."
205+
travis_terminate 0
206+
fi
207+
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
208+
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
209+
env:
210+
- NAME="configuration HASH_CODE"
211+
- COMPILER="ccache /usr/bin/g++-5"
212+
- EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG -DHASH_CODE"
213+
185214
# cmake build using g++-5
186215
- stage: Test different OS/CXX/Flags
187216
os: linux

0 commit comments

Comments
 (0)