comparison mupdf-source/thirdparty/curl/.travis.yml @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 language: c
2 sudo: required
3 cache:
4 directories:
5 - $HOME/wolfssl-4.0.0-stable
6 - $HOME/mesalink-1.0.0
7 - $HOME/nghttp2-1.39.2
8
9 env:
10 global:
11 - LD_LIBRARY_PATH=/usr/local/lib
12
13 addons:
14 apt:
15 config:
16 retries: true
17 sources: &common_sources
18 - ubuntu-toolchain-r-test
19 packages: &common_packages
20 - cmake
21 - gcc-8
22 - valgrind
23 - libev-dev
24 - libc-ares-dev
25 - g++-8
26 - libstdc++-8-dev
27 - stunnel4
28 - libidn2-0-dev
29 - gnutls-bin
30
31 matrix:
32 include:
33 - os: linux
34 compiler: gcc
35 dist: trusty
36 env:
37 - T=normal C="--with-gssapi --with-libssh2" CHECKSRC=1
38 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
39 addons:
40 apt:
41 sources:
42 - *common_sources
43 packages:
44 - *common_packages
45 - krb5-user
46 - libssh2-1-dev
47 - os: linux
48 compiler: gcc
49 dist: trusty
50 env:
51 - T=normal C=--with-libssh
52 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
53 addons:
54 apt:
55 sources:
56 - *common_sources
57 packages:
58 - *common_packages
59 - libssh-dev
60 - os: linux
61 compiler: gcc
62 dist: trusty
63 env:
64 - T=normal C="--disable-http --disable-smtp --disable-imap"
65 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
66 - os: linux
67 compiler: gcc
68 dist: trusty
69 env:
70 - T=normal C="--enable-ares"
71 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
72 - os: linux
73 compiler: gcc
74 dist: xenial
75 env:
76 - T=normal C="--disable-verbose" CPPFLAGS="-Wno-variadic-macros" NOTESTS=1
77 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
78 addons:
79 apt:
80 sources:
81 - *common_sources
82 packages:
83 - *common_packages
84 - libpsl-dev
85 - libbrotli-dev
86 - os: linux
87 compiler: gcc
88 dist: xenial
89 env:
90 - T=novalgrind BORINGSSL=yes C="--with-ssl=$HOME/boringssl" LD_LIBRARY_PATH=/home/travis/boringssl/lib:/usr/local/lib
91 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
92 addons:
93 apt:
94 sources:
95 - *common_sources
96 packages:
97 - *common_packages
98 - libpsl-dev
99 - libbrotli-dev
100 - os: linux
101 compiler: gcc
102 dist: xenial
103 env:
104 - T=novalgrind BORINGSSL=yes QUICHE="yes" C="--with-ssl=$HOME/boringssl --with-quiche=$HOME/quiche/target/release --enable-alt-svc" LD_LIBRARY_PATH=/home/travis/boringssl/lib:$HOME/quiche/target/release:/usr/local/lib
105 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
106 addons:
107 apt:
108 sources:
109 - *common_sources
110 packages:
111 - *common_packages
112 - libpsl-dev
113 - libbrotli-dev
114 #- os: linux
115 # compiler: gcc
116 # dist: xenial
117 # env:
118 # - T=novalgrind NGTCP2=yes C="--with-ssl=$HOME/ngbuild --with-ngtcp2=$HOME/ngbuild --with-nghttp3=$HOME/ngbuild --enable-alt-svc" NOTESTS=
119 # - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
120 # addons:
121 # apt:
122 # sources:
123 # - *common_sources
124 # packages:
125 # - *common_packages
126 # - libpsl-dev
127 # - libbrotli-dev
128 - os: linux
129 compiler: gcc
130 dist: xenial
131 env:
132 - T=debug-wolfssl C="--with-wolfssl --without-ssl"
133 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
134 addons:
135 apt:
136 sources:
137 - *common_sources
138 packages:
139 - *common_packages
140 - libpsl-dev
141 - libbrotli-dev
142 - os: linux
143 compiler: gcc
144 dist: xenial
145 env:
146 - T=debug-mesalink C="--with-mesalink --without-ssl"
147 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
148 addons:
149 apt:
150 sources:
151 - *common_sources
152 packages:
153 - *common_packages
154 - libpsl-dev
155 - libbrotli-dev
156 - os: linux
157 compiler: clang
158 dist: xenial
159 env:
160 - T=debug
161 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
162 addons:
163 apt:
164 sources:
165 - *common_sources
166 - llvm-toolchain-xenial-7
167 packages:
168 - *common_packages
169 - clang-7
170 - libpsl-dev
171 - libbrotli-dev
172 - os: linux
173 compiler: clang
174 dist: xenial
175 env:
176 - T=debug C="--enable-alt-svc"
177 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
178 addons:
179 apt:
180 sources:
181 - *common_sources
182 - llvm-toolchain-xenial-7
183 packages:
184 - *common_packages
185 - clang-7
186 - libpsl-dev
187 - libbrotli-dev
188 - os: linux
189 compiler: clang
190 dist: xenial
191 env:
192 - T=debug C="--with-mbedtls --without-ssl"
193 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
194 addons:
195 apt:
196 sources:
197 - *common_sources
198 - llvm-toolchain-xenial-7
199 packages:
200 - *common_packages
201 - clang-7
202 - libpsl-dev
203 - libbrotli-dev
204 - libmbedtls-dev
205 - os: linux
206 compiler: clang
207 dist: xenial
208 env:
209 - T=debug C="--with-gnutls --without-ssl"
210 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
211 addons:
212 apt:
213 sources:
214 - *common_sources
215 - llvm-toolchain-xenial-7
216 packages:
217 - *common_packages
218 - clang-7
219 - libgnutls28-dev
220 - libpsl-dev
221 - libbrotli-dev
222 - os: linux
223 compiler: clang
224 dist: xenial
225 env:
226 - T=debug C="--disable-threaded-resolver"
227 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
228 addons:
229 apt:
230 sources:
231 - *common_sources
232 - llvm-toolchain-xenial-7
233 packages:
234 - *common_packages
235 - clang-7
236 - libpsl-dev
237 - libbrotli-dev
238 - os: linux
239 compiler: clang
240 dist: xenial
241 env:
242 - T=debug C="--with-nss --without-ssl" NOTESTS=1 CPPFLAGS="-isystem /usr/include/nss"
243 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
244 addons:
245 apt:
246 sources:
247 - *common_sources
248 - llvm-toolchain-xenial-7
249 packages:
250 - *common_packages
251 - clang-7
252 - libnss3-dev
253 - libpsl-dev
254 - libbrotli-dev
255 - os: linux
256 compiler: gcc
257 dist: trusty
258 env:
259 - T=iconv
260 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
261 - os: osx
262 compiler: gcc
263 env: T=debug C=--with-libssh2
264 - os: osx
265 compiler: gcc
266 env: T=debug C="--disable-dict --disable-file --disable-ftp --disable-gopher --disable-imap --disable-ldap --disable-pop3 --disable-rtmp --disable-rtsp --disable-scp --disable-sftp --disable-smb --disable-smtp --disable-telnet --disable-tftp --disable-unix-sockets --disable-shared --enable-debug --enable-maintainer-mode --without-brotli --without-gssapi --without-libidn2 --without-libmetalink --without-libpsl --without-librtmp --without-libssh2 --without-nghttp2 --without-ntlm-auth --without-ssl --without-zlib"
267 - os: osx
268 compiler: gcc
269 env: T=debug C=--enable-ares
270 - os: osx
271 compiler: gcc
272 env: T=debug C="--with-ssl=/usr/local/opt/openssl --with-libmetalink"
273 - os: osx
274 compiler: gcc
275 env: T=debug C="--with-ssl=/usr/local/opt/libressl --with-libmetalink"
276 - os: osx
277 compiler: clang
278 osx_image: xcode10
279 env: T=debug C="--without-ssl --with-darwinssl --with-libmetalink"
280 - os: osx
281 compiler: clang
282 env: T=normal
283 - os: osx
284 compiler: clang
285 env: T=cmake
286 - os: linux
287 compiler: gcc
288 dist: xenial
289 env:
290 - T=cmake
291 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
292 addons:
293 apt:
294 sources:
295 - *common_sources
296 packages:
297 - *common_packages
298 - libpsl-dev
299 - libbrotli-dev
300 - os: linux
301 compiler: clang
302 dist: xenial
303 env:
304 - T=cmake
305 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
306 addons:
307 apt:
308 sources:
309 - *common_sources
310 - llvm-toolchain-xenial-7
311 packages:
312 - *common_packages
313 - clang-7
314 - libpsl-dev
315 - libbrotli-dev
316 - os: linux
317 compiler: gcc
318 dist: xenial
319 env:
320 - T=coverage
321 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
322 addons:
323 apt:
324 sources:
325 - *common_sources
326 packages:
327 - *common_packages
328 - lcov
329 - libpsl-dev
330 - libbrotli-dev
331 - libssh2-1-dev
332 - os: linux
333 compiler: gcc
334 dist: xenial
335 env:
336 - T=distcheck
337 - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8"
338 addons:
339 apt:
340 sources:
341 - *common_sources
342 packages:
343 - *common_packages
344 - libpsl-dev
345 - libbrotli-dev
346 - os: linux
347 compiler: clang
348 dist: xenial
349 env:
350 - T=fuzzer
351 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
352 addons:
353 apt:
354 sources:
355 - *common_sources
356 - llvm-toolchain-xenial-7
357 packages:
358 - *common_packages
359 - clang-7
360 - libpsl-dev
361 - libbrotli-dev
362 - os: linux
363 compiler: clang
364 dist: xenial
365 env:
366 - T=tidy
367 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
368 addons:
369 apt:
370 sources:
371 - *common_sources
372 - llvm-toolchain-xenial-7
373 packages:
374 - *common_packages
375 - clang-7
376 - clang-tidy-7
377 - libpsl-dev
378 - libbrotli-dev
379 - os: linux
380 compiler: clang
381 dist: xenial
382 env:
383 - T=scan-build
384 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
385 addons:
386 apt:
387 sources:
388 - *common_sources
389 - llvm-toolchain-xenial-7
390 packages:
391 - *common_packages
392 - clang-7
393 - libpsl-dev
394 - libbrotli-dev
395 - os: linux
396 compiler: clang
397 dist: xenial
398 env:
399 - T=debug CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" LIBS="-ldl -lubsan"
400 - OVERRIDE_CC="CC=clang-7" OVERRIDE_CXX="CXX=clang++-7"
401 addons:
402 apt:
403 sources:
404 - *common_sources
405 - llvm-toolchain-xenial-7
406 packages:
407 - *common_packages
408 - clang-7
409 - libpsl-dev
410 - libbrotli-dev
411
412 before_install:
413 - eval "${OVERRIDE_CC}"
414 - eval "${OVERRIDE_CXX}"
415
416 install:
417 - if [ "$T" = "coverage" ]; then pip2 install --user cpp-coveralls; fi
418 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update > /dev/null; fi
419 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew reinstall libtool > /dev/null; fi
420 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install rtmpdump libssh2 c-ares libmetalink libressl nghttp2 libmetalink; fi
421
422 before_script:
423 - ./buildconf
424 - |
425 if [ "$NGTCP2" = yes ]; then
426 (cd $HOME &&
427 git clone --depth 1 -b openssl-quic-draft-22 https://github.com/tatsuhiro-t/openssl possl &&
428 cd possl &&
429 ./config enable-tls1_3 --prefix=$HOME/ngbuild &&
430 make && make install_sw &&
431
432 cd .. &&
433 git clone --depth 1 https://github.com/ngtcp2/nghttp3
434 cd nghttp3 &&
435 autoreconf -i &&
436 ./configure --prefix=$HOME/ngbuild --enable-lib-only &&
437 make && make install &&
438
439 cd .. &&
440 git clone --depth 1 -b draft-22 https://github.com/ngtcp2/ngtcp2 &&
441 cd ngtcp2 &&
442 autoreconf -i &&
443 ./configure PKG_CONFIG_PATH=$HOME/ngbuild/lib/pkgconfig LDFLAGS="-Wl,-rpath,$HOME/ngbuild/lib" --prefix=$HOME/ngbuild &&
444 make && make install)
445 fi
446 - |
447 if [ "$TRAVIS_OS_NAME" = linux -a "$BORINGSSL" ]; then
448 (cd $HOME &&
449 git clone --depth=1 https://boringssl.googlesource.com/boringssl &&
450 cd boringssl &&
451 mkdir build &&
452 cd build &&
453 CXX="g++" CC="gcc" cmake -DCMAKE_BUILD_TYPE=release -DBUILD_SHARED_LIBS=1 .. &&
454 make &&
455 cd .. &&
456 mkdir lib &&
457 cd lib &&
458 cp ../build/crypto/libcrypto.so . &&
459 cp ../build/ssl/libssl.so . &&
460 echo "BoringSSL lib dir: "`pwd` &&
461 cd ../build &&
462 make clean && rm -f CMakeCache.txt &&
463 CXX="g++" CC="gcc" cmake -DCMAKE_POSITION_INDEPENDENT_CODE=on .. &&
464 make &&
465 export LIBS=-lpthread )
466 fi
467 - |
468 if [ "$TRAVIS_OS_NAME" = linux -a "$QUICHE" ]; then
469 (cd $HOME &&
470 git clone --depth=1 https://github.com/cloudflare/quiche.git &&
471 curl https://sh.rustup.rs -sSf | sh -s -- -y &&
472 source $HOME/.cargo/env &&
473 cd quiche &&
474 QUICHE_BSSL_PATH=$HOME/boringssl cargo build -v --release --features pkg-config-meta)
475 fi
476 - |
477 if [ $TRAVIS_OS_NAME = linux ]; then
478 if [ ! -e $HOME/wolfssl-4.0.0-stable/Makefile ]; then
479 (cd $HOME && \
480 curl -LO https://github.com/wolfSSL/wolfssl/archive/v4.0.0-stable.tar.gz && \
481 tar -xzf v4.0.0-stable.tar.gz && \
482 cd wolfssl-4.0.0-stable && \
483 ./autogen.sh && \
484 ./configure --enable-tls13 --enable-all && \
485 touch wolfssl/wolfcrypt/fips.h && \
486 make)
487 fi
488 fi
489 - |
490 if [ $TRAVIS_OS_NAME = linux ]; then
491 if [ ! -e $HOME/mesalink-1.0.0/Makefile ]; then
492 (cd $HOME && \
493 curl https://sh.rustup.rs -sSf | sh -s -- -y && \
494 source $HOME/.cargo/env && \
495 curl -LO https://github.com/mesalock-linux/mesalink/archive/v1.0.0.tar.gz && \
496 tar -xzf v1.0.0.tar.gz && \
497 cd mesalink-1.0.0 && \
498 ./autogen.sh && \
499 ./configure --enable-tls13 && \
500 make)
501 fi
502 fi
503 - |
504 if [ $TRAVIS_OS_NAME = linux ]; then
505 if [ ! -e $HOME/nghttp2-1.39.2/Makefile ]; then
506 (cd $HOME && \
507 curl -L https://github.com/nghttp2/nghttp2/releases/download/v1.39.2/nghttp2-1.39.2.tar.gz |
508 tar xzf - && \
509 cd nghttp2-1.39.2 && \
510 CXX="g++-8" CC="gcc-8" CFLAGS="" LDFLAGS="" LIBS="" ./configure --disable-threads --enable-app && \
511 make)
512 fi
513 fi
514 - |
515 if [ $TRAVIS_OS_NAME = linux ]; then
516 (cd $HOME/wolfssl-4.0.0-stable && sudo make install)
517 (cd $HOME/mesalink-1.0.0 && sudo make install)
518 (cd $HOME/nghttp2-1.39.2 && sudo make install)
519 fi
520
521 script:
522 - |
523 set -eo pipefail
524 if [ "$T" = "coverage" ]; then
525 ./configure --enable-debug --disable-shared --disable-threaded-resolver --enable-code-coverage --enable-werror --enable-alt-svc --with-libssh2
526 make
527 make TFLAGS=-n test-nonflaky
528 make "TFLAGS=-n -e" test-nonflaky
529 tests="1 200 300 500 700 800 900 1000 1100 1200 1302 1400 1502 3000"
530 make "TFLAGS=-n -t $tests" test-nonflaky
531 coveralls --gcov /usr/bin/gcov-8 --gcov-options '\-lp' -i src -e lib -e tests -e docs -b $PWD/src
532 coveralls --gcov /usr/bin/gcov-8 --gcov-options '\-lp' -e src -i lib -e tests -e docs -b $PWD/lib
533 fi
534 - |
535 set -eo pipefail
536 if [ "$T" = "debug" ]; then
537 ./configure --enable-debug --enable-werror $C
538 make && make examples
539 if [ -z $NOTESTS ]; then
540 make TFLAGS=-n test-nonflaky
541 fi
542 fi
543 - |
544 set -eo pipefail
545 if [ "$T" = "debug-wolfssl" ]; then
546 ./configure --enable-debug --enable-werror $C
547 make
548 make "TFLAGS=-n !313" test-nonflaky
549 fi
550 - |
551 set -eo pipefail
552 if [ "$T" = "debug-mesalink" ]; then
553 ./configure --enable-debug --enable-werror $C
554 make
555 make "TFLAGS=-n !313 !3001" test-nonflaky
556 fi
557 - |
558 set -eo pipefail
559 if [ "$T" = "novalgrind" ]; then
560 ./configure --enable-werror $C
561 make && make examples
562 make TFLAGS=-n test-nonflaky
563 fi
564 - |
565 set -eo pipefail
566 if [ "$T" = "normal" ]; then
567 if [ $TRAVIS_OS_NAME = linux ]; then
568 # Remove system curl to make sure we don't rely on it.
569 # Only done on Linux since we're not permitted to on mac.
570 sudo rm -f /usr/bin/curl
571 fi
572 ./configure --enable-warnings --enable-werror $C
573 make && make examples
574 if [ -z $NOTESTS ]; then
575 make test-nonflaky
576 fi
577 if [ -n $CHECKSRC ]; then
578 make checksrc
579 fi
580 fi
581 - |
582 set -eo pipefail
583 if [ "$T" = "tidy" ]; then
584 ./configure --enable-warnings --enable-werror $C
585 make && make tidy
586 fi
587 - |
588 set -eo pipefail
589 if [ "$T" = "iconv" ]; then
590 source .travis-iconv-env.sh
591 ./configure --enable-debug --enable-werror $C
592 make && make examples
593 make test-nonflaky
594 fi
595 - |
596 set -eo pipefail
597 if [ "$T" = "cmake" ]; then
598 if [ $TRAVIS_OS_NAME = linux ]; then
599 cmake -H. -Bbuild -DCURL_WERROR=ON && cmake --build build
600 else
601 cmake -H. -Bbuild -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON && cmake --build build
602 fi
603 fi
604 - |
605 set -eo pipefail
606 if [ "$T" = "distcheck" ]; then
607 # find BOM markers and exit if we do
608 ! git grep `printf '\xef\xbb\xbf'`
609 ./configure
610 make
611 ./maketgz 99.98.97
612 # verify in-tree build - and install it
613 (tar xf curl-99.98.97.tar.gz && \
614 cd curl-99.98.97 && \
615 ./configure --prefix=$HOME/temp && \
616 make && \
617 make TFLAGS=1 test && \
618 make install)
619 # basic check of the installed files
620 bash scripts/installcheck.sh $HOME/temp
621 rm -rf curl-99.98.97
622 # verify out-of-tree build
623 (tar xf curl-99.98.97.tar.gz && \
624 touch curl-99.98.97/docs/{cmdline-opts,libcurl}/Makefile.inc && \
625 mkdir build && \
626 cd build && \
627 ../curl-99.98.97/configure && \
628 make && \
629 make TFLAGS='-p 1 1139' test)
630 # verify cmake build
631 rm -rf curl-99.98.97
632 (tar xf curl-99.98.97.tar.gz && \
633 cd curl-99.98.97 && \
634 mkdir build && \
635 cd build && \
636 cmake .. && \
637 make)
638 fi
639 - |
640 set -eo pipefail
641 if [ "$T" = "fuzzer" ]; then
642 # Download the fuzzer to a temporary folder
643 ./tests/fuzz/download_fuzzer.sh /tmp/curl_fuzzer
644
645 export CURLSRC=$PWD
646
647 # Run the mainline fuzzer test
648 pushd /tmp/curl_fuzzer
649 ./mainline.sh ${CURLSRC}
650 popd
651 fi
652 - |
653 if [ "$T" = "scan-build" ]; then
654 scan-build ./configure --enable-debug --enable-werror $C
655 scan-build --status-bugs make && scan-build --status-bugs make examples
656 fi
657
658 # whitelist branches to avoid testing feature branches twice (as branch and as pull request)
659 branches:
660 only:
661 - master
662 - /\/ci$/
663
664 notifications:
665 email: false