X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=.travis.yml;h=5166a11c159837e5298ca86c32199777768434c7;hp=0ed05c3c963d21d76463c03303332987411721ef;hb=512f733beac73f37ba4acbcf730ebc6c6de849b6;hpb=b44bd8e1efb2518380b95220818d8643c7cfd845 diff --git a/.travis.yml b/.travis.yml index 0ed05c3..5166a11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ # autogenerated file; do not edit language: c -sudo: required +sudo: false dist: trusty addons: @@ -18,6 +18,12 @@ compiler: - gcc - clang +cache: + directories: + - $HOME/cache +before_cache: + - find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete + env: - 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 - 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 @@ -31,17 +37,18 @@ env: - 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 - 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 -before_script: - - ./travis/brotli.sh +install: + - ./travis/brotli.sh v1.0.2 - make -f travis/pecl/Makefile php - make -f travis/pecl/Makefile pecl PECL=ext-raphf.git:raphf:master - make -f travis/pecl/Makefile pecl PECL=ext-propro.git:propro:master - - make -f travis/pecl/Makefile ext PECL=http script: + - make -f travis/pecl/Makefile ext PECL=http - make -f travis/pecl/Makefile test - - make -f travis/pecl/Makefile cppcheck CPPCHECK_EXITCODE=0 +after_script: + - make -f travis/pecl/Makefile cppcheck after_failure: - test -e tests/helper/server.log && cat tests/helper/server.log after_success: