2015-01-24 00:58:16 +00:00
|
|
|
language: c
|
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
|
|
|
|
|
|
|
|
|
2016-09-23 12:59:46 +00:00
|
|
|
# Container-based Ubuntu 12.04 LTS Server Edition 64 bit (doesn't support 32-bit includes)
|
2016-11-14 12:07:45 +00:00
|
|
|
- env: Ubu=12.04cont Cmd="make usan"
|
|
|
|
os: linux
|
2016-09-23 12:59:46 +00:00
|
|
|
sudo: false
|
2016-11-14 20:09:44 +00:00
|
|
|
|
2016-11-14 12:07:45 +00:00
|
|
|
- env: Ubu=12.04cont Cmd="make asan"
|
|
|
|
os: linux
|
2016-09-23 12:59:46 +00:00
|
|
|
sudo: false
|
2016-11-14 12:07:45 +00:00
|
|
|
|
2017-02-21 14:57:03 +00:00
|
|
|
- env: Ubu=12.04cont Cmd="make uasan"
|
|
|
|
os: linux
|
|
|
|
sudo: false
|
2016-11-14 12:07:45 +00:00
|
|
|
|
2017-02-21 14:57:03 +00:00
|
|
|
- env: Ubu=14.04 Cmd='make test CC=clang-4.0 MOREFLAGS="-g -fsanitize=address -fsanitize=undefined"'
|
2016-11-14 12:07:45 +00:00
|
|
|
os: linux
|
2017-02-21 08:59:19 +00:00
|
|
|
dist: trusty
|
2016-09-23 12:59:46 +00:00
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2017-02-21 12:40:28 +00:00
|
|
|
- llvm-toolchain-trusty-4.0
|
2016-09-23 12:59:46 +00:00
|
|
|
packages:
|
2017-02-21 12:40:28 +00:00
|
|
|
- clang-4.0
|
2016-11-14 20:09:44 +00:00
|
|
|
|
2017-02-21 14:57:03 +00:00
|
|
|
- env: Ubu=14.04 Cmd='make -C tests test32 CC=clang-4.0 MOREFLAGS="-g -fsanitize=address"'
|
2016-11-14 12:07:45 +00:00
|
|
|
os: linux
|
2017-02-21 14:57:03 +00:00
|
|
|
dist: trusty
|
2016-10-07 04:32:06 +00:00
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2017-02-21 14:57:03 +00:00
|
|
|
- llvm-toolchain-trusty-4.0
|
2016-10-07 04:32:06 +00:00
|
|
|
packages:
|
2017-02-21 14:57:03 +00:00
|
|
|
- libc6-dev-i386
|
|
|
|
- gcc-multilib
|
|
|
|
- clang-4.0
|
2016-11-14 20:09:44 +00:00
|
|
|
|
|
|
|
|
2016-09-23 12:59:46 +00:00
|
|
|
# Ubuntu 14.04 LTS Server Edition 64 bit
|
2017-02-21 14:57:03 +00:00
|
|
|
- env: Ubu=14.04 Cmd='cd contrib/pzstd && make googletest pzstd tests check && make clean
|
|
|
|
&& make googletest32 all32 check && make clean
|
|
|
|
&& make googletest tsan check && make clean
|
|
|
|
&& make asan check && make clean'
|
2017-02-21 07:01:55 +00:00
|
|
|
os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
install:
|
2017-02-21 14:57:03 +00:00
|
|
|
- export CXX="g++-6" CC="gcc-6"
|
|
|
|
- export LDFLAGS="-fuse-ld=gold"
|
|
|
|
- export TESTFLAGS='--gtest_filter=-*ExtremelyLarge*'
|
2017-02-21 07:01:55 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2017-02-21 14:57:03 +00:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2017-02-21 07:01:55 +00:00
|
|
|
packages:
|
|
|
|
- libc6-dev-i386
|
|
|
|
- g++-multilib
|
2017-02-21 14:57:03 +00:00
|
|
|
- gcc-6
|
|
|
|
- gcc-6-multilib
|
|
|
|
- g++-6
|
|
|
|
- g++-6-multilib
|
2017-02-21 07:39:02 +00:00
|
|
|
|
2017-02-21 14:57:03 +00:00
|
|
|
- env: Ubu=14.04 Cmd="make armtest && make clean && make aarch64test"
|
2016-11-14 12:07:45 +00:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- qemu-system-arm
|
|
|
|
- qemu-user-static
|
|
|
|
- gcc-arm-linux-gnueabi
|
2016-12-17 15:28:12 +00:00
|
|
|
- libc6-dev-armel-cross
|
2016-11-14 12:07:45 +00:00
|
|
|
- gcc-aarch64-linux-gnu
|
|
|
|
- libc6-dev-arm64-cross
|
|
|
|
|
2017-02-21 14:57:03 +00:00
|
|
|
- env: Ubu=14.04 Cmd='make ppctest && make clean && make ppc64test'
|
2017-01-02 23:25:01 +00:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- qemu-system-ppc
|
|
|
|
- qemu-user-static
|
|
|
|
- gcc-powerpc-linux-gnu
|
|
|
|
|
2017-02-21 07:01:55 +00:00
|
|
|
# other feature branches => short tests
|
2017-02-21 07:39:02 +00:00
|
|
|
- env: Ubu=14.04 Cmd='make lib && CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make -C tests valgrindTest'
|
2016-11-14 12:07:45 +00:00
|
|
|
os: linux
|
2016-09-23 12:59:46 +00:00
|
|
|
dist: trusty
|
2016-05-30 08:18:56 +00:00
|
|
|
sudo: required
|
2016-08-17 12:17:54 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2016-09-12 12:33:23 +00:00
|
|
|
- valgrind
|
2016-11-14 20:09:44 +00:00
|
|
|
|
2017-02-21 07:01:55 +00:00
|
|
|
- env: Ubu=14.04 Cmd="make zlibwrapper && make clean && make -C tests test-zstd-nolegacy && make clean && make -C tests test32 versionsTest"
|
2017-01-25 10:19:35 +00:00
|
|
|
os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libc6-dev-i386
|
|
|
|
- gcc-multilib
|
|
|
|
|
2016-11-14 20:09:44 +00:00
|
|
|
|
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-16 11:29:08 +00:00
|
|
|
|
2017-02-21 08:59:19 +00:00
|
|
|
# cron & master => long tests, as this is the final step towards a Release
|
|
|
|
# dev => normal tests
|
|
|
|
# other feature branches => short tests (number > 10)
|
2017-02-21 14:57:03 +00:00
|
|
|
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ] || [ "$TRAVIS_BRANCH" = "asan" ]; then
|
2017-02-16 11:29:08 +00:00
|
|
|
FUZZERTEST=-T10mn sh -c "$Cmd" || travis_terminate 1;
|
|
|
|
else
|
2017-02-21 08:59:19 +00:00
|
|
|
if [ "$TRAVIS_PULL_REQUEST" = "true" ] || [ $JOB_NUMBER -gt 10 ] || [ "$TRAVIS_BRANCH" = "dev" ]; then
|
2017-02-16 11:29:08 +00:00
|
|
|
sh -c "$Cmd" || travis_terminate 1;
|
|
|
|
fi
|
|
|
|
fi
|