X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=.travis.yml;h=8f5c0c20ae53d964a479ca8089060060f51923ad;hb=2e4d7e8aedf960a3b5c5d0eeb29f4a1175142011;hp=6df57568f341a147406c88dc0a0905c7f18c218a;hpb=9d1230b4ee47e5a86d9ec8f85678ccb64c28a0f5;p=plcapi.git diff --git a/.travis.yml b/.travis.yml index 6df5756..8f5c0c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,9 +25,15 @@ before_script: # Set up Apache and Privoxy instances inside the Travis VM and use them for testing against - - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./tests/ci/travis/setup_php_fpm.sh; ./tests/ci/travis/setup_apache.sh; fi - - if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then ./tests/ci/travis/setup_hhvm.sh; ./tests/ci/travis/setup_apache_hhvm.sh; fi - - ./tests/ci/travis/setup_privoxy.sh + - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./test/ci/travis/setup_php_fpm.sh; ./test/ci/travis/setup_apache.sh; fi + - if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then ./test/ci/travis/setup_hhvm.sh; ./test/ci/travis/setup_apache_hhvm.sh; fi + - ./test/ci/travis/setup_privoxy.sh script: - php -d "include_path=.:./lib:./test" test/testsuite.php LOCALSERVER=localhost URI=/demo/server/server.php HTTPSSERVER=localhost HTTPSURI=/demo/server/server.php HTTPSVERIFYHOST=0 HTTPSIGNOREPEER=1 NOPROXY=1 + 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 + +after_failure: + # Save as much info as we can to help developers + - cat apache_error.log + - cat apache_access.log + - php -i