3772dc669b1c688f94f23f2ecfeac400a41e5517
[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 cache:
17 apt: true
18 directories:
19 - $HOME/cache
20 before_cache:
21 - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
22
23 env:
24 - PHP=master enable_debug=yes enable_zts=yes enable_iconv=yes
25 - 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
26 - PHP=8.0 enable_debug=no enable_zts=no enable_iconv=yes
27 - PHP=8.0 enable_debug=yes enable_zts=no enable_iconv=yes
28 - PHP=8.0 enable_debug=no enable_zts=yes enable_iconv=yes
29 - PHP=8.0 enable_debug=yes enable_zts=yes enable_iconv=yes
30 - 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
31 - 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
32 - 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
33
34 matrix:
35 fast_finish: true
36 allow_failures:
37 - env: PHP=master enable_debug=yes enable_zts=yes enable_iconv=yes
38
39 install:
40 - |
41 if test "$PHP" = master; then \
42 make -f travis/pecl/Makefile reconf; \
43 make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=m6w6/ext-raphf.git:raphf:master; \
44 fi
45 - make -f travis/pecl/Makefile php || make -f travis/pecl/Makefile clean php
46 - make -f travis/pecl/Makefile pecl PECL=m6w6/ext-raphf.git:raphf:master
47 - |
48 if test -n "$PECLs"; then \
49 IFS=$','; \
50 for pecl in $PECLs; do \
51 make -f travis/pecl/Makefile pecl PECL=$pecl; \
52 done; \
53 unset IFS; \
54 fi
55
56 script:
57 - make -f travis/pecl/Makefile ext PECL=http
58 - make -f travis/pecl/Makefile test
59
60 after_script:
61 - make -f travis/pecl/Makefile cppcheck
62 after_failure:
63 - test -e tests/helper/server.log && cat tests/helper/server.log
64 after_success:
65 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
66
67 notifications:
68 webhooks:
69 urls:
70 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
71 on_success: change
72 on_failure: always
73 on_start: never