fix for changed shutdown order in PHP-7.4
[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=7.0 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes
27 - PHP=7.1 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes
28 - PHP=7.2 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes
29 - PHP=7.4 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes
30 - PHP=master enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes
31 - PHP=7.3 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
32 - PHP=7.3 PECLs=event enable_sockets=yes enable_debug=no enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes
33 - PHP=7.3 PECLs=event enable_sockets=yes enable_debug=yes enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes
34 - PHP=7.3 PECLs=event enable_sockets=yes enable_debug=no enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes
35 - PHP=7.3 PECLs=event enable_sockets=yes enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes
36 - CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage' PHP=7.3 PECLs=event enable_sockets=yes enable_json=yes enable_hash=yes enable_iconv=yes with_http_libicu_dir=yes with_http_libidn_dir=no with_http_libidn2_dir=no
37 - CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage' PHP=7.3 PECLs=event enable_sockets=yes enable_json=yes enable_hash=yes enable_iconv=yes with_http_libidn_dir=yes with_http_libicu_dir=no with_http_libidn2_dir=no
38 - CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage' PHP=7.3 PECLs=event enable_sockets=yes enable_json=yes enable_hash=yes enable_iconv=yes with_http_libidn2_dir=yes with_http_libicu_dir=no with_http_libidn_dir=no
39
40 matrix:
41 fast_finish: true
42 allow_failures:
43 - env: PHP=7.4 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes
44 - env: PHP=master enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes
45
46 install:
47 - |
48 if test "$PHP" = master; then \
49 make -f travis/pecl/Makefile reconf; \
50 make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=ext-raphf.git:raphf:master; \
51 make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=ext-propro.git:propro:master; \
52 fi
53 - make -f travis/pecl/Makefile php || make -f travis/pecl/Makefile clean php
54 - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master
55 - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master
56 - |
57 if test -n "$PECLs"; then \
58 IFS=$','; \
59 for pecl in $PECLs; do \
60 make -f travis/pecl/Makefile pecl PECL=$pecl; \
61 done; \
62 unset IFS; \
63 fi
64
65 script:
66 - make -f travis/pecl/Makefile ext PECL=http
67 - make -f travis/pecl/Makefile test
68
69 after_script:
70 - make -f travis/pecl/Makefile cppcheck
71 after_failure:
72 - test -e tests/helper/server.log && cat tests/helper/server.log
73 after_success:
74 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
75
76 notifications:
77 webhooks:
78 urls:
79 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
80 on_success: change
81 on_failure: always
82 on_start: never