2017-03-07 20:08:15 +00:00
|
|
|
# Medium Tests: Run on all commits/PRs to dev branch
|
|
|
|
|
2015-01-24 00:58:16 +00:00
|
|
|
language: c
|
2017-02-22 08:21:04 +00:00
|
|
|
dist: trusty
|
2018-05-14 15:55:21 +00:00
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
|
|
|
|
2016-05-30 08:18:56 +00:00
|
|
|
matrix:
|
2016-06-04 22:23:20 +00:00
|
|
|
include:
|
2017-02-28 07:16:49 +00:00
|
|
|
# Ubuntu 14.04
|
2018-07-17 17:02:17 +00:00
|
|
|
- env: Cmd='make test'
|
2018-08-03 14:59:33 +00:00
|
|
|
|
2018-08-08 17:22:19 +00:00
|
|
|
- env: Cmd='make gcc6install && CC=gcc-6 CFLAGS=-Werror make -j all
|
|
|
|
&& make clean && CC=gcc-6 make -j uasan-test-zstd </dev/null' # test when stdin is not a tty
|
|
|
|
- env: Cmd='make gcc6install libc6install
|
|
|
|
&& make clean && CC=gcc-6 make -j uasan-test-zstd32'
|
|
|
|
- env: Cmd='make gcc7install && make clean && CC=gcc-7 make -j uasan-test-zstd'
|
2018-08-08 19:37:08 +00:00
|
|
|
- env: Cmd='make gcc8install && CC=gcc-8 CFLAGS="-Werror -O3" make -j all'
|
2017-03-07 20:08:15 +00:00
|
|
|
- env: Cmd='make clang38install && CC=clang-3.8 make clean msan-test-zstd'
|
|
|
|
|
2018-08-16 00:44:27 +00:00
|
|
|
- env: Cmd='make staticAnalyze'
|
|
|
|
|
2017-03-07 20:08:15 +00:00
|
|
|
- env: Cmd='make gcc6install && CC=gcc-6 make clean uasan-fuzztest'
|
2018-06-28 02:29:18 +00:00
|
|
|
- env: Cmd='make gcc6install libc6install
|
2018-06-27 23:57:28 +00:00
|
|
|
&& make clean && CC=gcc-6 CFLAGS=-m32 make uasan-fuzztest'
|
2017-03-07 20:08:15 +00:00
|
|
|
- env: Cmd='make clang38install && CC=clang-3.8 make clean msan-fuzztest'
|
|
|
|
- env: Cmd='make clang38install && CC=clang-3.8 make clean tsan-test-zstream'
|
|
|
|
|
2018-06-28 02:29:18 +00:00
|
|
|
- env: Cmd='make -j uasanregressiontest
|
2018-06-27 23:57:28 +00:00
|
|
|
&& make clean && make -j msanregressiontest'
|
|
|
|
|
2018-06-28 02:29:18 +00:00
|
|
|
- env: Cmd='make valgrindinstall && make -C tests clean valgrindTest
|
2018-06-27 23:57:28 +00:00
|
|
|
&& make clean && make -C tests test-fuzzer-stackmode'
|
|
|
|
|
2018-08-16 00:44:27 +00:00
|
|
|
- env: Cmd='make arminstall && make armfuzz'
|
|
|
|
- env: Cmd='make arminstall && make aarch64fuzz'
|
|
|
|
- env: Cmd='make ppcinstall && make ppcfuzz'
|
|
|
|
- env: Cmd='make ppcinstall && make ppc64fuzz'
|
|
|
|
|
2018-06-28 02:29:18 +00:00
|
|
|
- env: Cmd='make lz4install && make -C tests test-lz4
|
|
|
|
&& make clean && make -C tests test-pool
|
2018-06-27 23:57:28 +00:00
|
|
|
&& make clean && bash tests/libzstd_partial_builds.sh'
|
2018-06-14 14:22:24 +00:00
|
|
|
|
2018-01-15 01:06:21 +00:00
|
|
|
# tag-specific test
|
|
|
|
- if: tag =~ ^v[0-9]\.[0-9]
|
|
|
|
env: Cmd='make -C tests checkTag && tests/checkTag $TRAVIS_BRANCH'
|
|
|
|
|
2017-03-07 20:08:15 +00:00
|
|
|
git:
|
|
|
|
depth: 1
|
2017-01-02 23:25:01 +00:00
|
|
|
|
2017-03-07 20:08:15 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- dev
|
|
|
|
- master
|
2018-06-27 23:57:28 +00:00
|
|
|
- travisTest
|
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-28 07:20:53 +00:00
|
|
|
- echo JOB_NUMBER=$JOB_NUMBER TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_EVENT_TYPE=$TRAVIS_EVENT_TYPE TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
|
2017-03-07 20:08:15 +00:00
|
|
|
- export FUZZERTEST=-T2mn;
|
|
|
|
export ZSTREAM_TESTTIME=-T2mn;
|
|
|
|
export DECODECORPUS_TESTTIME=-T1mn;
|
|
|
|
sh -c "$Cmd" || travis_terminate 1;
|