travis: rebuild deps on master
[m6w6/ext-http] / .travis.yml
1 # autogenerated file; do not edit
2 language: c
3 sudo: false
4 dist: trusty
5
6 addons:
7 apt:
8 packages:
9 - php5-cli
10 - php-pear
11 - libcurl4-openssl-dev
12 - libidn11-dev
13 - libidn2-0-dev
14 - libicu-dev
15 - libevent-dev
16
17 compiler:
18 - gcc
19 - clang
20
21 cache:
22 directories:
23 - $HOME/cache
24 before_cache:
25 - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
26
27 env:
28 - PHP=7.0 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli
29 - PHP=7.1 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli
30 - PHP=7.3 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli
31 - PHP=master enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli
32 - PHP=7.2 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
33 - PHP=7.2 enable_debug=no enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli
34 - PHP=7.2 enable_debug=yes enable_maintainer_zts=no enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli
35 - PHP=7.2 enable_debug=no enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli
36 - PHP=7.2 enable_debug=yes enable_maintainer_zts=yes enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli
37 - CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage' PHP=7.2 enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli with_http_libicu_dir=yes with_http_libidn_dir=no with_http_libidn2_dir=no
38 - CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage' PHP=7.2 enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli with_http_libidn_dir=yes with_http_libicu_dir=no with_http_libidn2_dir=no
39 - CFLAGS='-O0 -g --coverage' CXXFLAGS='-O0 -g --coverage' PHP=7.2 enable_json=yes enable_hash=yes enable_iconv=yes with_http_libbrotli_dir=/home/travis/brotli with_http_libidn2_dir=yes with_http_libicu_dir=no with_http_libidn_dir=no
40
41 install:
42 - ./travis/brotli.sh v1.0.2
43 - |
44 if test "$PHP" = master; then \
45 make -f travis/pecl/Makefile reconf; \
46 make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=ext-raphf.git:raphf:master; \
47 make -f travis/pecl/Makefile pecl-rm pecl-clean PECL=ext-propro.git:propro:master; \
48 fi
49 - make -f travis/pecl/Makefile php || make -f travis/pecl/Makefile clean php
50 - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master
51 - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master
52
53 script:
54 - make -f travis/pecl/Makefile ext PECL=http
55 - make -f travis/pecl/Makefile test
56
57 after_script:
58 - make -f travis/pecl/Makefile cppcheck
59 after_failure:
60 - test -e tests/helper/server.log && cat tests/helper/server.log
61 after_success:
62 - test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
63
64 notifications:
65 webhooks:
66 urls:
67 - https://webhooks.gitter.im/e/28d35158ac7e385bd14d
68 on_success: change
69 on_failure: always
70 on_start: never