1 # NB: we need to use the Trusty images if we want to test on hhvm
16 # This is mandatory or the 'apt-get install' calls following will fail
17 - sudo apt-get update -qq
18 - sudo apt-get install -y apache2 libapache2-mod-fastcgi
19 - sudo apt-get install -y privoxy
22 # NB: the lib does not declare dependencies for now...
23 - composer self-update && composer install
26 # Disable xdebug. NB: this should NOT be done for hhvm...
27 - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi
30 # Set up Apache and Privoxy instances inside the Travis VM and use them for testing against
31 - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./test/ci/travis/setup_php_fpm.sh; ./test/ci/travis/setup_apache.sh; fi
32 - if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then ./test/ci/travis/setup_hhvm.sh; ./test/ci/travis/setup_apache_hhvm.sh; fi
33 - ./test/ci/travis/setup_privoxy.sh
36 # Travis currently compiles PHP with an oldish cURL/GnuTLS combination;
37 # to make the tests pass when Apache has a bogus SSL cert whe need the full set of options below
38 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
41 # Save as much info as we can to help developers
42 - cat apache_error.log
43 - cat apache_access.log