3 # the current Travis VMs are based on Ubuntu Trusty. Alas, those do not have php 5.3 available. So we keep using Precise...
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
23 # NB: the lib does not declare dependencies for now...
24 - composer self-update && composer install
28 - phpenv config-rm xdebug.ini
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
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
40 # Save as much info as we can to help developers
41 - cat apache_error.log
42 - cat apache_access.log