8
8
branches :
9
9
only :
10
10
- dev
11
+ - release
11
12
- master
12
13
- travisTest
13
14
@@ -31,49 +32,11 @@ matrix:
31
32
script :
32
33
- make check
33
34
34
- - name : make benchmarking
35
- script :
36
- - make benchmarking
37
-
38
35
- name : make test (complete)
39
36
script :
40
37
# DEVNULLRIGHTS : will request sudo rights to test permissions on /dev/null
41
38
- DEVNULLRIGHTS=test make test
42
39
43
- - name : gcc-6 + gcc-7 + libzstdmt compilation # ~ 6mn
44
- script :
45
- - make gcc6install gcc7install
46
- - CC=gcc-6 CFLAGS=-Werror make -j all
47
- - make clean
48
- - CC=gcc-7 CFLAGS=-Werror make -j all
49
- - make clean
50
- - LDFLAGS=-Wl,--no-undefined make -C lib libzstd-mt
51
- - make -C tests zbufftest-dll
52
- # LDFLAGS=-Wl,--no-undefined : will make the linker fail if dll is underlinked
53
- # zbufftest-dll : test that a user program can link to multi-threaded libzstd without specifying -pthread
54
-
55
- - name : gcc-8 + ASan + UBSan + Test Zstd # ~6.5mn
56
- script :
57
- - make gcc8install
58
- - CC=gcc-8 CFLAGS="-Werror" make -j all
59
- - make clean
60
- - CC=gcc-8 make -j uasan-test-zstd </dev/null # test when stdin is not a tty
61
-
62
- - name : gcc-6 + ASan + UBSan + Test Zstd, 32bit mode # ~4mn
63
- script :
64
- - make gcc6install libc6install
65
- - CC=gcc-6 CFLAGS="-Werror -m32" make -j all32
66
- - make clean
67
- - CC=gcc-6 make -j uasan-test-zstd32 # note : can complain about pointer overflow
68
-
69
- - name : clang-3.8 + MSan + Test Zstd # ~3.5mn
70
- script :
71
- - make clang38install
72
- # External libraries must be turned off when using MSAN tests,
73
- # because they are not msan-instrumented,
74
- # so any data coming from these libraries is always considered "uninitialized"
75
- - CC=clang-3.8 make clean msan-test-zstd HAVE_ZLIB=0 HAVE_LZ4=0 HAVE_LZMA=0
76
-
77
40
- name : Minimal Decompressor Macros # ~5mn
78
41
script :
79
42
- make clean && make -j all ZSTD_LIB_MINIFY=1 MOREFLAGS="-Werror"
@@ -85,51 +48,11 @@ matrix:
85
48
- make clean && make -j all MOREFLAGS="-Werror -DZSTD_NO_INLINE -DZSTD_STRIP_ERROR_STRINGS"
86
49
- make clean && make check MOREFLAGS="-Werror -DZSTD_NO_INLINE -DZSTD_STRIP_ERROR_STRINGS"
87
50
88
- - name : cmake build and test check # ~6mn
89
- script :
90
- - make cmakebuild
91
-
92
51
- name : static analyzer scanbuild # ~26mn
93
52
dist : trusty # note : it's important to pin down a version of static analyzer, since different versions report different false positives
94
53
script :
95
54
- make staticAnalyze
96
55
97
- - name : gcc-8 + ASan + UBSan + Fuzz Test # ~19mn
98
- script :
99
- - make gcc8install
100
- - CC=gcc-8 make clean uasan-fuzztest
101
-
102
- - name : gcc-6 + ASan + UBSan + Fuzz Test 32bit # ~15.5mn
103
- script :
104
- - make gcc6install libc6install
105
- - CC=gcc-6 CFLAGS="-O2 -m32" make uasan-fuzztest # can complain about pointer overflow
106
-
107
- - name : clang-3.8 + MSan + Fuzz Test # ~14.5mn
108
- script :
109
- - make clang38install
110
- - CC=clang-3.8 make clean msan-fuzztest
111
-
112
- - name : ASan + UBSan + MSan + Regression Test # ~ 4.5mn
113
- script :
114
- - make -j uasanregressiontest
115
- - make clean
116
- - make -j msanregressiontest
117
-
118
- - name : C++, gnu90 and c99 compatibility # ~3mn
119
- script :
120
- - make cxxtest
121
- - make clean
122
- - make gnu90build
123
- - make clean
124
- - make c99build
125
- - make clean
126
- - make travis-install # just ensures `make install` works
127
-
128
- - name : mingw cross-compilation
129
- script :
130
- - sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix;
131
- - CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CFLAGS="-Werror -O1" make zstd
132
-
133
56
- name : Valgrind + Fuzz Test Stack Mode # ~ 7mn
134
57
script :
135
58
- make valgrindinstall
@@ -162,74 +85,51 @@ matrix:
162
85
- make -C tests checkTag
163
86
- tests/checkTag "$TRAVIS_BRANCH"
164
87
165
- # tests for master branch and cron job only
88
+ # tests for release branch and cron job only
166
89
- name : OS-X # ~13mn
167
- if : branch = master
90
+ if : branch = release
168
91
os : osx
169
92
script :
170
93
- make test
171
94
- make -C lib all
172
95
173
- - name : zbuff test
174
- if : branch = master
175
- script :
176
- - make -C tests test-zbuff
177
-
178
96
- name : Versions Compatibility Test # 11.5mn
179
- if : branch = master
97
+ if : branch = release
180
98
script :
181
99
- make -C tests versionsTest
182
100
183
101
- name : thread sanitizer # ~29mn
184
- if : branch = master
102
+ if : branch = release
185
103
script :
186
104
- make clang38install
187
105
- CC=clang-3.8 make tsan-test-zstream
188
106
- CC=clang-3.8 make tsan-fuzztest
189
107
190
108
- name : PPC64LE + Fuzz test # ~13mn
191
- if : branch = master
109
+ if : branch = release
192
110
arch : ppc64le
193
111
script :
194
112
- cat /proc/cpuinfo
195
113
- make test
196
114
197
115
- name : Qemu PPC64 + Fuzz test # ~13mn, presumed Big-Endian (?)
198
116
dist : trusty # note : PPC64 cross-compilation for Qemu tests seems broken on Xenial
199
- if : branch = master
117
+ if : branch = release
200
118
script :
201
119
- make ppcinstall
202
120
- make ppc64fuzz
203
121
204
122
# note : we already have aarch64 tests on hardware
205
123
- name : Qemu aarch64 + Fuzz Test (on Xenial) # ~14mn
206
- if : branch = master
124
+ if : branch = release
207
125
dist : xenial
208
126
script :
209
127
- make arminstall
210
128
- make aarch64fuzz
211
129
212
- - name : zlib wrapper test # ~7.5mn
213
- if : branch = master
214
- script :
215
- - make gpp6install valgrindinstall
216
- - make -C zlibWrapper test
217
- - make -C zlibWrapper valgrindTest
218
-
219
- - name : LZ4, thread pool, and partial libs tests # ~4mn
220
- if : branch = master
221
- script :
222
- - make lz4install
223
- - make -C tests test-lz4
224
- - make check < /dev/null | tee # mess with lz4 console detection
225
- - make clean
226
- - make -C tests test-pool
227
- - make clean
228
- - bash tests/libzstd_partial_builds.sh
229
-
230
130
# meson dedicated test
231
131
- name : Xenial (Meson + clang) # ~15mn
232
- if : branch = master
132
+ if : branch = release
233
133
dist : xenial
234
134
language : cpp
235
135
compiler : clang
0 commit comments