enable zlib/brotli/curl by default
[m6w6/ext-http] / .travis.yml
1 # autogenerated file; do not edit
2 language: c
3
4 addons:
5 apt:
6 packages:
7 - php-cli
8 - php-pear
9 - libcurl4-openssl-dev
10 - libidn11-dev
11 - libidn2-0-dev
12 - libicu-dev
13 - libevent-dev
14 - libbrotli-dev
15
16 dist: xenial
17
18 cache:
19 apt: true
20 directories:
21 - $HOME/cache
22 before_cache:
23 - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
24
25 env:
26 - PHP=master enable_debug=yes enable_zts=yes enable_iconv=yes
27 - PHP=8.0 with_http_libicu_dir=no with_http_libidn_dir=no with_http_libidn2_dir=no with_http_libcurl_dir=no with_http_libevent_dir=no with_http_libbrotli_dir=no
28 - PHP=8.0 enable_debug=no enable_zts=no enable_iconv=yes
29 - PHP=8.0 enable_debug=yes enable_zts=no enable_iconv=yes
30 - PHP=8.0 enable_debug=no enable_zts=yes enable_iconv=yes
31 - PHP=8.0 enable_debug=yes enable_zts=yes enable_iconv=yes
32 - CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage' PHP=8.0 enable_iconv=yes with_http_libicu_dir=yes with_http_libidn_dir=no with_http_libidn2_dir=no
33 - CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage' PHP=8.0 enable_iconv=yes with_http_libidn_dir=yes with_http_libicu_dir=no with_http_libidn2_dir=no
34 - CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage' PHP=8.0 enable_iconv=yes with_http_libidn2_dir=yes with_http_libicu_dir=no with_http_libidn_dir=no
35
36 matrix:
37 fast_finish: true
38 allow_failures:
39 - env: PHP=master enable_debug=yes enable_zts=yes enable_iconv=yes
40
41 install:
42 - |
43 if test "$PHP" = master; then \
44 make -f travis/pecl/Makefile reconf; \
45 make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=ext-raphf.git:raphf:master; \
46 fi
47 - make -f travis/pecl/Makefile php || make -f travis/pecl/Makefile clean php
48 - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master
49 - |
50 if test -n "$PECLs"; then \
51 IFS=$','; \
52 for pecl in $PECLs; do \
53 make -f travis/pecl/Makefile pecl PECL=$pecl; \
54 done; \
55 unset IFS; \
56 fi
57
58 script:
59 - make -f travis/pecl/Makefile ext PECL=http
60 - make -f travis/pecl/Makefile test
61
62 after_script:
63 - make -f travis/pecl/Makefile cppcheck
64 after_failure:
65 - test -e tests/helper/server.log && cat tests/helper/server.log
66 after_success:
67 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
68
69 notifications:
70 webhooks:
71 urls:
72 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
73 on_success: change
74 on_failure: always
75 on_start: never