12 - sudo apt-get update -qq
15 - sudo apt-get install -y apache2 libapache2-mod-fastcgi
16 - sudo apt-get install -y privoxy
17 - composer self-update && composer install
20 # Disable xdebug. NB: this should NOT be done for hhvm...
21 - if [ $TRAVIS_PHP_VERSION != "hhvm" -a $TRAVIS_PHP_VERSION != "7.0" ]; then phpenv config-rm xdebug.ini; fi
23 # We set up an Apache instance inside the Travis VM and test it.
24 - if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then ./tests/ci/travis/setup_apache.sh; fi
25 - if [ '$TRAVIS_PHP_VERSION' = 'hhvm' ]; then ./tests/ci/travis/setup_apache_hhvm.sh; fi
26 - ./tests/ci/travis/setup_privoxy.sh
29 # to have code coverage: --coverage-clover=coverage.clover
30 phpunit tests LOCALSERVER=localhost URI=/demo/server/server.php HTTPSSERVER=gggeek.ssl.altervista.org HTTPSURI=/sw/xmlrpc/demo/server/server.php PROXY=localhost:8080
33 cat $TRAVIS_BUILD_DIR/apache_error.log $TRAVIS_BUILD_DIR/apache_access.log /tmp/hhvm.log
34 # # upload code-coverage to Scrutinizer
35 # - wget https://scrutinizer-ci.com/ocular.phar
36 # - php ocular.phar code-coverage:upload --format=php-clover coverage.clover