blob: 3ca7255260bce109e48d681f6f1d50162fed26b9 [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 +01004sudo: required
5dist: trusty
Yann Collet4856a002015-01-24 01:58:16 +01006matrix:
Yann Collet068a8c12016-06-05 00:23:20 +02007 include:
Przemyslaw Skibinskica1d3d42017-02-28 08:16:49 +01008 # Ubuntu 14.04
Sean Purcelldaec40d2017-03-07 12:08:15 -08009 - env: Cmd='make gcc6install && CC=gcc-6 make clean uasan-test-zstd'
10 - env: Cmd='make gcc6install libc6install && CC=gcc-6 make clean uasan-test-zstd32'
Yann Collet19cb37f2018-01-16 11:40:42 -080011 - env: Cmd='make gcc7install && CC=gcc-7 make clean uasan-test-zstd'
Sean Purcelldaec40d2017-03-07 12:08:15 -080012 - env: Cmd='make clang38install && CC=clang-3.8 make clean msan-test-zstd'
Przemyslaw Skibinskib68ea5d2017-02-24 08:18:44 +010013
Sean Purcelldaec40d2017-03-07 12:08:15 -080014 - env: Cmd='make gcc6install && CC=gcc-6 make clean uasan-fuzztest'
15 - env: Cmd='make gcc6install libc6install && CC=gcc-6 CFLAGS=-m32 make clean uasan-fuzztest'
16 - env: Cmd='make clang38install && CC=clang-3.8 make clean msan-fuzztest'
17 - env: Cmd='make clang38install && CC=clang-3.8 make clean tsan-test-zstream'
Przemyslaw Skibinskib68ea5d2017-02-24 08:18:44 +010018
Sean Purcelldaec40d2017-03-07 12:08:15 -080019 - env: Cmd='make valgrindinstall && make -C tests clean valgrindTest'
20
21 - env: Cmd='make arminstall && make armfuzz'
22 - env: Cmd='make arminstall && make aarch64fuzz'
23 - env: Cmd='make ppcinstall && make ppcfuzz'
24 - env: Cmd='make ppcinstall && make ppc64fuzz'
Nick Terrell77d5bc22017-09-25 13:33:12 -070025 - env: Cmd='make -j uasanregressiontest'
26 - env: Cmd='make -j msanregressiontest'
Sean Purcelldaec40d2017-03-07 12:08:15 -080027
W. Felix Handte5705d9f2017-09-21 17:30:43 -070028 - env: Cmd='make lz4install && make -C tests test-lz4'
29
Yann Collet815edde2018-01-14 17:06:21 -080030 # tag-specific test
31 - if: tag =~ ^v[0-9]\.[0-9]
32 env: Cmd='make -C tests checkTag && tests/checkTag $TRAVIS_BRANCH'
33
Sean Purcelldaec40d2017-03-07 12:08:15 -080034git:
35 depth: 1
36
37branches:
38 only:
39 - dev
40 - master
Przemyslaw Skibinski0b48a592016-11-14 13:07:45 +010041
Yann Collet068a8c12016-06-05 00:23:20 +020042script:
Przemyslaw Skibinski672dc772016-11-14 16:58:39 +010043 - JOB_NUMBER=$(echo $TRAVIS_JOB_NUMBER | sed -e 's:[0-9][0-9]*\.\(.*\):\1:')
Przemyslaw Skibinskia3352d02017-02-28 08:20:53 +010044 - 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 -080045 - export FUZZERTEST=-T2mn;
46 export ZSTREAM_TESTTIME=-T2mn;
47 export DECODECORPUS_TESTTIME=-T1mn;
48 sh -c "$Cmd" || travis_terminate 1;