blob: 80406064d745cf07a461aa48c6fa4c95c00132b6 [file] [log] [blame]
Sean Purcelldaec40d2017-03-07 12:08:15 -08001# Medium Tests: Run on all commits/PRs to dev branch
2
Yann Collet4856a002015-01-24 01:58:16 +01003language: c
Przemyslaw Skibinski2e8ae512017-02-22 09:21:04 +01004dist: trusty
W. Felix Handtee26be5a2018-05-14 11:55:21 -04005sudo: required
6addons:
7 apt:
8 update: true
9
Yann Collet4856a002015-01-24 01:58:16 +010010matrix:
Yann Collet068a8c12016-06-05 00:23:20 +020011 include:
Przemyslaw Skibinskica1d3d42017-02-28 08:16:49 +010012 # Ubuntu 14.04
W. Felix Handtee22d0242018-06-29 16:31:59 -040013 - env: Cmd='make gcc6install && CC=gcc-6 make -j all && make clean && CC=gcc-6 make clean uasan-test-zstd </dev/null' # also test when stdin is not a tty
Sean Purcelldaec40d2017-03-07 12:08:15 -080014 - env: Cmd='make gcc6install libc6install && CC=gcc-6 make clean uasan-test-zstd32'
Yann Collet19cb37f2018-01-16 11:40:42 -080015 - env: Cmd='make gcc7install && CC=gcc-7 make clean uasan-test-zstd'
Sean Purcelldaec40d2017-03-07 12:08:15 -080016 - env: Cmd='make clang38install && CC=clang-3.8 make clean msan-test-zstd'
Przemyslaw Skibinskib68ea5d2017-02-24 08:18:44 +010017
Sean Purcelldaec40d2017-03-07 12:08:15 -080018 - env: Cmd='make gcc6install && CC=gcc-6 make clean uasan-fuzztest'
19 - env: Cmd='make gcc6install libc6install && CC=gcc-6 CFLAGS=-m32 make clean uasan-fuzztest'
20 - env: Cmd='make clang38install && CC=clang-3.8 make clean msan-fuzztest'
21 - env: Cmd='make clang38install && CC=clang-3.8 make clean tsan-test-zstream'
Przemyslaw Skibinskib68ea5d2017-02-24 08:18:44 +010022
Yann Collet7fee9662018-06-14 10:22:24 -040023 - env: Cmd='make -C tests test-fuzzer-stackmode'
24
Sean Purcelldaec40d2017-03-07 12:08:15 -080025 - env: Cmd='make valgrindinstall && make -C tests clean valgrindTest'
26
27 - env: Cmd='make arminstall && make armfuzz'
Yann Collet9c277f12018-06-27 13:19:14 -070028 - env: Cmd='make arminstall && make aarch64fuzz'
Yann Collet7fee9662018-06-14 10:22:24 -040029
Sean Purcelldaec40d2017-03-07 12:08:15 -080030 - env: Cmd='make ppcinstall && make ppcfuzz'
31 - env: Cmd='make ppcinstall && make ppc64fuzz'
Yann Collet79e83d12018-06-06 12:20:19 -070032 - env: Cmd='make -j uasanregressiontest && make clean && make -j msanregressiontest'
Sean Purcelldaec40d2017-03-07 12:08:15 -080033
W. Felix Handte71d27aa2018-06-27 19:25:39 -040034 - env: Cmd='make lz4install && make -C tests test-lz4 test-pool && make clean && bash tests/libzstd_partial_builds.sh'
Yann Collet7fee9662018-06-14 10:22:24 -040035
Yann Collet815edde2018-01-14 17:06:21 -080036 # tag-specific test
37 - if: tag =~ ^v[0-9]\.[0-9]
38 env: Cmd='make -C tests checkTag && tests/checkTag $TRAVIS_BRANCH'
39
Sean Purcelldaec40d2017-03-07 12:08:15 -080040git:
41 depth: 1
42
43branches:
44 only:
45 - dev
46 - master
Przemyslaw Skibinski0b48a592016-11-14 13:07:45 +010047
Yann Collet068a8c12016-06-05 00:23:20 +020048script:
Przemyslaw Skibinski672dc772016-11-14 16:58:39 +010049 - JOB_NUMBER=$(echo $TRAVIS_JOB_NUMBER | sed -e 's:[0-9][0-9]*\.\(.*\):\1:')
Przemyslaw Skibinskia3352d02017-02-28 08:20:53 +010050 - echo JOB_NUMBER=$JOB_NUMBER TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_EVENT_TYPE=$TRAVIS_EVENT_TYPE TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
Sean Purcelldaec40d2017-03-07 12:08:15 -080051 - export FUZZERTEST=-T2mn;
52 export ZSTREAM_TESTTIME=-T2mn;
53 export DECODECORPUS_TESTTIME=-T1mn;
54 sh -c "$Cmd" || travis_terminate 1;