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