1 # Travis CI is used to test platforms that github-actions currently doesn't support
2 # without either self-hosting or some finnicky work-around. Also, some tests
3 # are troublesome to migrate since GH Actions runs tests not in a tty.
23 ZSTREAM_TESTTIME=-T1mn
24 DECODECORPUS_TESTTIME=-T1mn
29 - name: S390X (big endian) + Fuzz test
33 - FUZZER_FLAGS=--no-big-tests make -C tests fuzztest
35 - name: S390X (big endian) + Fuzz test + no intrinsics
39 - MOREFLAGS="-DZSTD_NO_INTRINSICS" FUZZER_FLAGS=--no-big-tests make -C tests fuzztest
41 - name: arm64 # ~2.5 mn
51 - make -C tests fuzztest
53 # TODO: migrate to GH Actions once newest clang staticanalyze warnings are fixed
54 - name: static analyzer scanbuild # ~8mn
55 dist: trusty # note : it's important to pin down a version of static analyzer, since different versions report different false positives
59 # GH actions can't run this command on OS-X, non-tty issues
60 - name: OS-X make all lib
65 # Introduced to check compat with old toolchains, to prevent e.g. #1872
66 - name: ARM Build Test (on Trusty)
72 # check release number (release/new tag only)
73 - name: Tag-Specific Test
74 if: tag =~ ^v[0-9]\.[0-9]
76 - make -C tests checkTag
77 - tests/checkTag "$TRAVIS_BRANCH"
79 - name: PPC64LE + Fuzz test # ~13mn
82 - FUZZER_FLAGS=--no-big-tests
86 - make -C tests fuzztest
88 # This test currently fails on GA specifically, for no obvious reason
89 # (it works fine on travisCI, and on local test platforms).
90 - name: Versions Compatibility Test # ~6mn
92 - make -C tests versionsTest
94 # meson dedicated test
95 - name: Focal (Meson + clang) # ~15mn
100 - sudo apt-get install -qq liblz4-dev valgrind tree
102 travis_retry curl -o ~/ninja.zip -L 'https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip' &&
103 unzip ~/ninja.zip -d ~/.local/bin
105 travis_retry curl -o ~/get-pip.py -L 'https://bootstrap.pypa.io/pip/3.6/get-pip.py' &&
106 python3 ~/get-pip.py --user &&
107 pip3 install --user meson
111 --buildtype=debugoptimized \
113 -Dauto_features=enabled \
114 -Dbin_programs=true \
117 -Ddefault_library=both \
121 - meson test --verbose --no-rebuild
122 - DESTDIR=./staging ninja install
125 - cat "$TRAVIS_BUILD_DIR"/builddir/meson-logs/testlog.txt
128 - env: ALLOW_FAILURES=true