Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 1 | # Medium Tests: Run on all commits/PRs to dev branch |
| 2 | |
Yann Collet | 4856a00 | 2015-01-24 01:58:16 +0100 | [diff] [blame] | 3 | language: c |
Przemyslaw Skibinski | 2e8ae51 | 2017-02-22 09:21:04 +0100 | [diff] [blame] | 4 | dist: trusty |
W. Felix Handte | e26be5a | 2018-05-14 11:55:21 -0400 | [diff] [blame] | 5 | sudo: required |
| 6 | addons: |
| 7 | apt: |
| 8 | update: true |
| 9 | |
Yann Collet | 4856a00 | 2015-01-24 01:58:16 +0100 | [diff] [blame] | 10 | matrix: |
Yann Collet | 068a8c1 | 2016-06-05 00:23:20 +0200 | [diff] [blame] | 11 | include: |
Przemyslaw Skibinski | ca1d3d4 | 2017-02-28 08:16:49 +0100 | [diff] [blame] | 12 | # Ubuntu 14.04 |
W. Felix Handte | e22d024 | 2018-06-29 16:31:59 -0400 | [diff] [blame^] | 13 | - 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 Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 14 | - env: Cmd='make gcc6install libc6install && CC=gcc-6 make clean uasan-test-zstd32' |
Yann Collet | 19cb37f | 2018-01-16 11:40:42 -0800 | [diff] [blame] | 15 | - env: Cmd='make gcc7install && CC=gcc-7 make clean uasan-test-zstd' |
Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 16 | - env: Cmd='make clang38install && CC=clang-3.8 make clean msan-test-zstd' |
Przemyslaw Skibinski | b68ea5d | 2017-02-24 08:18:44 +0100 | [diff] [blame] | 17 | |
Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 18 | - 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 Skibinski | b68ea5d | 2017-02-24 08:18:44 +0100 | [diff] [blame] | 22 | |
Yann Collet | 7fee966 | 2018-06-14 10:22:24 -0400 | [diff] [blame] | 23 | - env: Cmd='make -C tests test-fuzzer-stackmode' |
| 24 | |
Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 25 | - env: Cmd='make valgrindinstall && make -C tests clean valgrindTest' |
| 26 | |
| 27 | - env: Cmd='make arminstall && make armfuzz' |
Yann Collet | 9c277f1 | 2018-06-27 13:19:14 -0700 | [diff] [blame] | 28 | - env: Cmd='make arminstall && make aarch64fuzz' |
Yann Collet | 7fee966 | 2018-06-14 10:22:24 -0400 | [diff] [blame] | 29 | |
Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 30 | - env: Cmd='make ppcinstall && make ppcfuzz' |
| 31 | - env: Cmd='make ppcinstall && make ppc64fuzz' |
Yann Collet | 79e83d1 | 2018-06-06 12:20:19 -0700 | [diff] [blame] | 32 | - env: Cmd='make -j uasanregressiontest && make clean && make -j msanregressiontest' |
Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 33 | |
W. Felix Handte | 71d27aa | 2018-06-27 19:25:39 -0400 | [diff] [blame] | 34 | - env: Cmd='make lz4install && make -C tests test-lz4 test-pool && make clean && bash tests/libzstd_partial_builds.sh' |
Yann Collet | 7fee966 | 2018-06-14 10:22:24 -0400 | [diff] [blame] | 35 | |
Yann Collet | 815edde | 2018-01-14 17:06:21 -0800 | [diff] [blame] | 36 | # tag-specific test |
| 37 | - if: tag =~ ^v[0-9]\.[0-9] |
| 38 | env: Cmd='make -C tests checkTag && tests/checkTag $TRAVIS_BRANCH' |
| 39 | |
Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 40 | git: |
| 41 | depth: 1 |
| 42 | |
| 43 | branches: |
| 44 | only: |
| 45 | - dev |
| 46 | - master |
Przemyslaw Skibinski | 0b48a59 | 2016-11-14 13:07:45 +0100 | [diff] [blame] | 47 | |
Yann Collet | 068a8c1 | 2016-06-05 00:23:20 +0200 | [diff] [blame] | 48 | script: |
Przemyslaw Skibinski | 672dc77 | 2016-11-14 16:58:39 +0100 | [diff] [blame] | 49 | - JOB_NUMBER=$(echo $TRAVIS_JOB_NUMBER | sed -e 's:[0-9][0-9]*\.\(.*\):\1:') |
Przemyslaw Skibinski | a3352d0 | 2017-02-28 08:20:53 +0100 | [diff] [blame] | 50 | - echo JOB_NUMBER=$JOB_NUMBER TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_EVENT_TYPE=$TRAVIS_EVENT_TYPE TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST |
Sean Purcell | daec40d | 2017-03-07 12:08:15 -0800 | [diff] [blame] | 51 | - export FUZZERTEST=-T2mn; |
| 52 | export ZSTREAM_TESTTIME=-T2mn; |
| 53 | export DECODECORPUS_TESTTIME=-T1mn; |
| 54 | sh -c "$Cmd" || travis_terminate 1; |