2015-01-23 16:58:16 -08:00
language : c
2016-05-30 01:18:56 -07:00
matrix :
fast_finish : true
2016-06-04 15:23:20 -07:00
include :
2016-09-23 05:59:46 -07:00
# OS X Mavericks
2016-11-14 04:07:45 -08:00
- env : Ubu=OS_X_Mavericks Cmd="make gnu90test && make clean && make test && make clean && make travis-install"
os : osx
2016-09-23 05:59:46 -07:00
# Container-based Ubuntu 12.04 LTS Server Edition 64 bit (doesn't support 32-bit includes)
2016-12-31 16:10:13 -08:00
- env : Ubu=12.04cont Cmd="make zlibwrapper && make clean && make -C tests test-symbols && make clean && make -C tests test-zstd-nolegacy && make clean && make cmaketest && make clean && make -C contrib/pzstd googletest pzstd tests check && make -C contrib/pzstd clean"
2016-11-14 04:07:45 -08:00
os : linux
2016-09-23 05:59:46 -07:00
sudo : false
language : cpp
install :
- export CXX="g++-4.8" CC="gcc-4.8"
2016-11-14 10:29:25 -08:00
- export TESTFLAGS='--gtest_filter=-*ExtremelyLarge*'
2016-09-23 05:59:46 -07:00
addons :
apt :
sources :
- ubuntu-toolchain-r-test
packages :
- gcc-4.8
- g++-4.8
2016-11-14 12:09:44 -08:00
2016-11-14 04:07:45 -08:00
- env : Ubu=12.04cont Cmd="make usan"
os : linux
2016-09-23 05:59:46 -07:00
sudo : false
2016-11-14 12:09:44 -08:00
2016-11-14 04:07:45 -08:00
- env : Ubu=12.04cont Cmd="make asan"
os : linux
2016-09-23 05:59:46 -07:00
sudo : false
2016-11-14 04:07:45 -08:00
2016-09-23 05:59:46 -07:00
# Standard Ubuntu 12.04 LTS Server Edition 64 bit
2017-02-08 12:00:21 -08:00
- env : Ubu=12.04 Cmd="make -C programs zstd-small zstd-decompress zstd-compress && make -C programs clean && make -C tests versionsTest test-longmatch"
2016-11-14 04:07:45 -08:00
os : linux
2016-09-23 05:59:46 -07:00
sudo : required
2016-11-14 12:09:44 -08:00
2016-11-14 04:07:45 -08:00
- env : Ubu=12.04 Cmd="make asan32"
os : linux
2016-09-23 05:59:46 -07:00
sudo : required
addons :
apt :
sources :
- ubuntu-toolchain-r-test
packages :
- libc6-dev-i386
- gcc-multilib
2016-11-14 12:09:44 -08:00
2016-11-14 04:07:45 -08:00
- env : Ubu=12.04 Cmd='cd contrib/pzstd && make googletest && make tsan && make check && make clean && make asan && make check && make clean && cd ../..'
os : linux
2016-10-06 21:32:06 -07:00
sudo : required
install :
- export CXX="g++-6" CC="gcc-6"
- export LDFLAGS="-fuse-ld=gold"
- export TESTFLAGS='--gtest_filter=-*ExtremelyLarge*'
addons :
apt :
sources :
- ubuntu-toolchain-r-test
packages :
- gcc-6
- g++-6
2016-11-14 12:09:44 -08:00
2016-09-23 05:59:46 -07:00
# Ubuntu 14.04 LTS Server Edition 64 bit
2016-12-17 07:28:12 -08:00
- env : Ubu=14.04 Cmd="make armtest"
2016-11-14 04:07:45 -08:00
dist : trusty
sudo : required
addons :
apt :
packages :
- qemu-system-arm
- qemu-user-static
- gcc-arm-linux-gnueabi
2016-12-17 07:28:12 -08:00
- libc6-dev-armel-cross
- env : Ubu=14.04 Cmd="make aarch64test"
dist : trusty
sudo : required
addons :
apt :
packages :
- qemu-system-arm
- qemu-user-static
2016-11-14 04:07:45 -08:00
- gcc-aarch64-linux-gnu
- libc6-dev-arm64-cross
2017-01-02 15:25:01 -08:00
- env : Ubu=14.04 Cmd='make ppctest'
dist : trusty
sudo : required
addons :
apt :
packages :
- qemu-system-ppc
- qemu-user-static
- gcc-powerpc-linux-gnu
- env : Ubu=14.04 Cmd='make ppc64test'
2016-11-14 04:07:45 -08:00
dist : trusty
sudo : required
addons :
apt :
packages :
- qemu-system-ppc
- qemu-user-static
- gcc-powerpc-linux-gnu
- env : Ubu=14.04 Cmd='make -C lib all && CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make -C tests valgrindTest'
os : linux
2016-09-23 05:59:46 -07:00
dist : trusty
2016-05-30 01:18:56 -07:00
sudo : required
2016-08-17 05:17:54 -07:00
addons :
apt :
packages :
2016-09-12 05:33:23 -07:00
- valgrind
2016-11-14 12:09:44 -08:00
2017-01-25 02:19:35 -08:00
# other feature branches => short tests
- env : Ubu=12.04cont Cmd="make test && make clean && make travis-install"
os : linux
sudo : false
- env : Ubu=14.04 Cmd="make -C tests test32"
os : linux
dist : trusty
sudo : required
addons :
apt :
packages :
- libc6-dev-i386
- gcc-multilib
2016-12-17 10:10:10 -08:00
- env : Ubu=14.04 Cmd="make gpptest && make clean && make gnu90test && make clean
&& make c99test && make clean && make gnu99test && make clean
2017-01-02 15:25:01 -08:00
&& make clangtest && make clean && make -C contrib/pzstd googletest32
2016-12-17 07:28:12 -08:00
&& make -C contrib/pzstd all32 && make -C contrib/pzstd check && make -C contrib/pzstd clean"
2016-11-14 04:07:45 -08:00
os : linux
2016-05-30 01:18:56 -07:00
dist : trusty
sudo : required
2016-09-22 17:45:24 -07:00
install :
- export CXX="g++-4.8" CC="gcc-4.8"
2016-09-23 05:59:46 -07:00
addons :
apt :
packages :
- libc6-dev-i386
2016-09-22 17:45:24 -07:00
- g++-multilib
- gcc-4.8
- gcc-4.8-multilib
- g++-4.8
- g++-4.8-multilib
2016-11-14 12:09:44 -08:00
2016-12-17 07:28:12 -08:00
- env : Ubu=14.04 Cmd="make gcc5test && make clean && make gcc6test && make clean && make -C tests dll"
2016-11-14 04:07:45 -08:00
os : linux
2016-09-23 05:59:46 -07:00
dist : trusty
sudo : required
2016-08-17 05:17:54 -07:00
addons :
apt :
sources :
- ubuntu-toolchain-r-test
packages :
2016-08-17 08:31:08 -07:00
- gcc-multilib
- gcc-5
2016-08-17 05:17:54 -07:00
- gcc-5-multilib
2016-08-17 08:31:08 -07:00
- gcc-6
2016-08-17 05:17:54 -07:00
- gcc-6-multilib
2016-01-11 07:39:42 -08:00
2016-06-04 15:23:20 -07:00
script :
2016-11-14 07:58:39 -08:00
- JOB_NUMBER=$(echo $TRAVIS_JOB_NUMBER | sed -e 's:[0-9][0-9]*\.\(.*\):\1:')
2017-02-16 03:29:08 -08:00
2017-02-16 03:33:25 -08:00
# cron & master => long tests, as this is the final step towards a Release
# dev => normal tests; other feature branches => short tests (number > 11)
2017-02-16 03:29:08 -08:00
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ] || [ "$TRAVIS_BRANCH" = "master" ]; then
FUZZERTEST=-T10mn sh -c "$Cmd" || travis_terminate 1;
else
if [ "$TRAVIS_PULL_REQUEST" = "true" ] || [ $JOB_NUMBER -gt 11 ] || [ "$TRAVIS_BRANCH" = "dev" ]; then
sh -c "$Cmd" || travis_terminate 1;
fi
fi