2015-01-24 00:58:16 +00:00
language : c
2017-02-22 08:21:04 +00:00
sudo : required
dist : trusty
2016-05-30 08:18:56 +00:00
matrix :
fast_finish : true
2016-06-04 22:23:20 +00:00
include :
2016-09-23 12:59:46 +00:00
# OS X Mavericks
2016-11-14 12:07:45 +00:00
- env : Ubu=OS_X_Mavericks Cmd="make gnu90test && make clean && make test && make clean && make travis-install"
os : osx
2017-02-21 19:44:35 +00:00
# Ubuntu 14.04 LTS Server Edition 64 bit
2017-02-22 07:54:56 +00:00
- env : Ubu=14.04 Cmd='make gpp6install uasan-test && cd contrib/pzstd && make test-pzstd && make test-pzstd32 && make test-pzstd-tsan && make test-pzstd-asan'
2017-02-21 21:48:04 +00:00
install :
- export CXX="g++-6" CC="gcc-6"
2017-02-22 09:31:30 +00:00
- env : Ubu=14.04 Cmd='CC=gcc-6 make gcc6install uasan-test32 && make clean zlibwrapper && make -C tests clean test-zstd-nolegacy && make -C tests versionsTest'
2017-02-22 07:54:56 +00:00
- env : Ubu=14.04 Cmd="make arminstall armtest && make clean && make aarch64test"
- env : Ubu=14.04 Cmd='make ppcinstall ppctest && make clean && make ppc64test'
2017-01-02 23:25:01 +00:00
2017-02-21 07:01:55 +00:00
# other feature branches => short tests
2017-02-22 10:07:28 +00:00
- env : Ubu=14.04 Cmd='make arminstall ppcinstall arm-ppc-compilation && make valgrindinstall lib && CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make -C tests valgrindTest'
2017-02-22 07:54:56 +00:00
- env : Ubu=14.04 Cmd="make libc6install && make -C tests test32"
2016-01-11 15:39:42 +00:00
2016-06-04 22:23:20 +00:00
script :
2016-11-14 15:58:39 +00:00
- JOB_NUMBER=$(echo $TRAVIS_JOB_NUMBER | sed -e 's:[0-9][0-9]*\.\(.*\):\1:')
2017-02-21 08:59:19 +00:00
# cron & master => long tests, as this is the final step towards a Release
2017-02-22 08:36:42 +00:00
# dev && pull requests => normal tests
2017-02-21 22:40:21 +00:00
# other feature branches => short tests (number > 5)
2017-02-22 08:36:42 +00:00
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ] || [ "$TRAVIS_BRANCH" = "master" ]; then
FUZZERTEST=-T7mn sh -c "$Cmd" || travis_terminate 1;
2017-02-16 11:29:08 +00:00
else
2017-02-21 22:40:21 +00:00
if [ "$TRAVIS_PULL_REQUEST" = "true" ] || [ $JOB_NUMBER -gt 5 ] || [ "$TRAVIS_BRANCH" = "dev" ]; then
2017-02-16 11:29:08 +00:00
sh -c "$Cmd" || travis_terminate 1;
fi
fi