2017-03-07 12:08:15 -08:00
|
|
|
# Medium Tests: Run on all commits/PRs to dev branch
|
|
|
|
|
2015-01-23 16:58:16 -08:00
|
|
|
language: c
|
2017-02-22 00:21:04 -08:00
|
|
|
dist: trusty
|
2018-05-14 08:55:21 -07:00
|
|
|
sudo: required
|
2018-11-27 22:06:18 -08:00
|
|
|
|
2017-03-07 12:08:15 -08:00
|
|
|
git:
|
|
|
|
depth: 1
|
2017-01-02 15:25:01 -08:00
|
|
|
|
2017-03-07 12:08:15 -08:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- dev
|
|
|
|
- master
|
2018-06-27 16:57:28 -07:00
|
|
|
- travisTest
|
2016-01-11 07:39:42 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- FUZZERTEST=-T2mn
|
|
|
|
ZSTREAM_TESTTIME=-T2mn
|
|
|
|
DECODECORPUS_TESTTIME=-T1mn
|
|
|
|
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
|
|
|
- name: Trusty (Test All)
|
|
|
|
script:
|
|
|
|
- make test
|
|
|
|
|
|
|
|
- name: Trusty (gcc-6 + ASan + UBSan + Test Zstd)
|
|
|
|
script:
|
|
|
|
- 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
|
2018-12-24 02:56:21 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (gcc-6 + ASan + UBSan + Test Zstd 32bit)
|
|
|
|
script:
|
|
|
|
- make gcc6install libc6install
|
|
|
|
- make clean
|
|
|
|
- CC=gcc-6 make -j uasan-test-zstd32
|
2018-12-24 02:56:21 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (gcc-7 + ASan + UBSan + Test Zstd)
|
|
|
|
script:
|
|
|
|
- make gcc7install
|
|
|
|
- make clean
|
|
|
|
- CC=gcc-7 make -j uasan-test-zstd
|
2018-12-24 02:56:21 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (gcc-8)
|
|
|
|
script:
|
|
|
|
- make gcc8install
|
|
|
|
- CC=gcc-8 CFLAGS="-Werror -O3" make -j all
|
2018-12-24 02:56:21 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (clang-3.8 + MSan + Test Zstd)
|
|
|
|
script:
|
|
|
|
- make clang38install
|
|
|
|
- CC=clang-3.8 make clean msan-test-zstd
|
|
|
|
|
2018-12-05 14:04:57 -08:00
|
|
|
- name: Trusty (Minimal Decompressor Macros)
|
|
|
|
script:
|
|
|
|
- make clean
|
2018-12-24 02:56:21 -08:00
|
|
|
- CFLAGS=-Werror make -j all MOREFLAGS="-Werror -DHUF_FORCE_DECOMPRESS_X1 -DZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT"
|
|
|
|
- make clean
|
|
|
|
- make -j check MOREFLAGS="-Werror -DHUF_FORCE_DECOMPRESS_X1 -DZSTD_FORCE_DECOMPRESS_SEQUENCES_SHORT"
|
2018-12-05 14:04:57 -08:00
|
|
|
- make clean
|
2018-12-24 02:56:21 -08:00
|
|
|
- CFLAGS=-Werror make -j all MOREFLAGS="-Werror -DHUF_FORCE_DECOMPRESS_X2 -DZSTD_FORCE_DECOMPRESS_SEQUENCES_LONG"
|
2018-12-05 14:04:57 -08:00
|
|
|
- make clean
|
2018-12-24 02:56:21 -08:00
|
|
|
- make -j check MOREFLAGS="-Werror -DHUF_FORCE_DECOMPRESS_X2 -DZSTD_FORCE_DECOMPRESS_SEQUENCES_LONG"
|
|
|
|
- make clean
|
|
|
|
- CFLAGS=-Werror make -j all MOREFLAGS="-Werror -DZSTD_NO_INLINE -DZSTD_STRIP_ERROR_STRINGS"
|
|
|
|
- make clean
|
|
|
|
- make -j check MOREFLAGS="-Werror -DZSTD_NO_INLINE -DZSTD_STRIP_ERROR_STRINGS"
|
2018-12-05 14:04:57 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (CMake)
|
|
|
|
script:
|
|
|
|
- make cmakebuild
|
|
|
|
|
|
|
|
- name: Trusty (Static Analyze)
|
|
|
|
script:
|
|
|
|
- make staticAnalyze
|
|
|
|
|
|
|
|
- name: Trusty (gcc-6 + ASan + UBSan + Fuzz Test)
|
|
|
|
script:
|
|
|
|
- make gcc6install
|
|
|
|
- CC=gcc-6 make clean uasan-fuzztest
|
2018-12-24 02:56:21 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (gcc-6 + ASan + UBSan + Fuzz Test 32bit)
|
|
|
|
script:
|
|
|
|
- make gcc6install libc6install
|
|
|
|
- make clean
|
|
|
|
- CC=gcc-6 CFLAGS=-m32 make uasan-fuzztest
|
2018-12-24 02:56:21 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (clang-3.8 + MSan + Fuzz Test)
|
|
|
|
script:
|
|
|
|
- make clang38install
|
|
|
|
- CC=clang-3.8 make clean msan-fuzztest
|
2018-12-24 02:56:21 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (clang-3.8 + TSan + Fuzz Test)
|
|
|
|
script:
|
|
|
|
- make clang38install
|
|
|
|
- CC=clang-3.8 make clean tsan-fuzztest
|
|
|
|
|
|
|
|
- name: Trusty (ASan + UBSan + MSan + Regression Test)
|
|
|
|
script:
|
|
|
|
- make -j uasanregressiontest
|
|
|
|
- make clean
|
|
|
|
- make -j msanregressiontest
|
|
|
|
|
|
|
|
- name: Trusty (Valgrind + Fuzz Test Stack Mode)
|
|
|
|
script:
|
|
|
|
- make valgrindinstall
|
|
|
|
- make -C tests clean valgrindTest
|
|
|
|
- make clean
|
|
|
|
- make -C tests test-fuzzer-stackmode
|
|
|
|
|
|
|
|
- name: Trusty (ARM + Fuzz Test)
|
|
|
|
script:
|
|
|
|
- make arminstall
|
|
|
|
- make armfuzz
|
2018-12-21 15:08:48 -08:00
|
|
|
|
|
|
|
- name: Xenial (AARCH64 + Fuzz Test)
|
|
|
|
dist: xenial
|
2018-12-13 10:38:06 -08:00
|
|
|
script:
|
|
|
|
- make arminstall
|
|
|
|
- make aarch64fuzz
|
2018-12-21 15:08:48 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (PPC + Fuzz Test)
|
|
|
|
script:
|
|
|
|
- make ppcinstall
|
|
|
|
- make ppcfuzz
|
2018-12-21 15:08:48 -08:00
|
|
|
|
2018-12-13 10:38:06 -08:00
|
|
|
- name: Trusty (PPC64 + Fuzz Test)
|
|
|
|
script:
|
|
|
|
- make ppcinstall
|
|
|
|
- make ppc64fuzz
|
|
|
|
|
|
|
|
- name: Trusty (LZ4)
|
|
|
|
script:
|
|
|
|
- make lz4install
|
|
|
|
- make -C tests test-lz4
|
|
|
|
- make clean
|
|
|
|
- make -C tests test-pool
|
|
|
|
- make clean
|
|
|
|
- bash tests/libzstd_partial_builds.sh
|
|
|
|
|
|
|
|
- name: Tag-Specific Test
|
|
|
|
if: tag =~ ^v[0-9]\.[0-9]
|
|
|
|
script:
|
|
|
|
- make -C tests checkTag
|
|
|
|
- tests/checkTag "$TRAVIS_BRANCH"
|
|
|
|
|
|
|
|
- name: Xenial (Meson + clang)
|
|
|
|
dist: xenial
|
|
|
|
language: cpp
|
|
|
|
compiler: clang
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get install -qq liblz4-dev valgrind tree
|
|
|
|
- curl -o ~/get-pip.py 'https://bootstrap.pypa.io/get-pip.py'
|
|
|
|
- python3 ~/get-pip.py --user
|
|
|
|
- pip3 install --user meson ninja
|
|
|
|
script:
|
|
|
|
- meson --buildtype=debug
|
|
|
|
-Db_lundef=false
|
|
|
|
-Dauto_features=enabled
|
|
|
|
-Dbuild_{programs,tests,contrib}=true
|
|
|
|
-Ddefault_library=both
|
|
|
|
build/meson builddir
|
|
|
|
- cd builddir
|
|
|
|
- DESTDIR=./staging ninja install
|
|
|
|
- tree ./staging
|
|
|
|
allow_failures:
|
|
|
|
- name: Xenial (Meson + clang)
|