debugging travis
[plcapi.git] / .travis.yml
1 language: php
2
3 php:
4   - 5.3
5   - 5.4
6   - 5.5
7   - 5.6
8   - 7.0
9   - 7.1
10   - hhvm
11
12 before_install:
13   # This is mandatory or the 'apt-get install' calls following will fail
14   - sudo apt-get update -qq
15   - sudo apt-get install -y apache2 libapache2-mod-fastcgi
16   - sudo apt-get install -y privoxy
17
18 install:
19   # NB: the lib does not declare dependencies for now...
20   - composer self-update && composer install
21
22 before_script:
23   # Disable xdebug. NB: this should NOT be done for hhvm...
24   - if [ $TRAVIS_PHP_VERSION != "hhvm" ]; then phpenv config-rm xdebug.ini; fi
25
26
27   # Set up Apache and Privoxy instances inside the Travis VM and use them for testing against
28   - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./test/ci/travis/setup_php_fpm.sh; ./test/ci/travis/setup_apache.sh; fi
29   - if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then ./test/ci/travis/setup_hhvm.sh; ./test/ci/travis/setup_apache_hhvm.sh; fi
30   - ./test/ci/travis/setup_privoxy.sh
31
32 script:
33   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
34
35 after_failure:
36   # Save as much info as we can to help developers
37   - cat apache_error.log
38   - cat apache_access.log