remove one more warning with php 7.2
[plcapi.git] / .travis.yml
1 language: php
2
3 # the current Travis VMs are based on Ubuntu Trusty. Alas, those do not have php 5.3 available. So we keep using Precise...
4 dist: precise
5
6 php:
7   - 5.3
8   - 5.4
9   - 5.5
10   - 5.6
11   - 7.0
12   - 7.1
13   - 7.2
14   - 7.3
15
16 before_install:
17   # This is mandatory or the 'apt-get install' calls following will fail
18   - sudo apt-get update -qq
19   - sudo apt-get install -y apache2 libapache2-mod-fastcgi
20   - sudo apt-get install -y privoxy
21
22 install:
23   # NB: the lib does not declare dependencies for now...
24   - composer self-update && composer install
25
26 before_script:
27   # Disable xdebug
28   - phpenv config-rm xdebug.ini
29
30   # Set up Apache and Privoxy instances inside the Travis VM and use them for testing against
31   - ./test/ci/travis/setup_php_fpm.sh; ./test/ci/travis/setup_apache.sh
32   - ./test/ci/travis/setup_privoxy.sh
33
34 script:
35   # Travis currently compiles PHP with an oldish cURL/GnuTLS combination;
36   # to make the tests pass when Apache has a bogus SSL cert whe need the full set of options below
37   php -d "include_path=.:./lib:./test" test/testsuite.php LOCALSERVER=localhost URI=/demo/server/server.php HTTPSSERVER=localhost HTTPSURI=/demo/server/server.php PROXY=localhost:8080 HTTPSVERIFYHOST=0 HTTPSIGNOREPEER=1 SSLVERSION=3
38
39 after_failure:
40   # Save as much info as we can to help developers
41   - cat apache_error.log
42   - cat apache_access.log
43   - php -i