2016-08-18 03:27:05 +02:00
|
|
|
git:
|
|
|
|
depth: 3
|
|
|
|
|
2016-06-15 21:46:43 +02:00
|
|
|
language: php
|
2016-12-29 21:45:09 +01:00
|
|
|
sudo: required
|
2016-06-15 21:46:43 +02:00
|
|
|
|
|
|
|
php:
|
2016-08-18 03:06:43 +02:00
|
|
|
- 7.0
|
|
|
|
- 5.6
|
|
|
|
- 5.5
|
|
|
|
- 5.4
|
|
|
|
- 5.3
|
|
|
|
|
2016-12-29 21:45:09 +01:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -y apache2 libapache2-mod-fastcgi
|
|
|
|
|
|
|
|
install:
|
2016-08-18 03:06:43 +02:00
|
|
|
- composer install
|
|
|
|
|
2016-12-29 21:45:09 +01:00
|
|
|
before_script:
|
|
|
|
- ./tests/ci/install.sh
|
|
|
|
|
2016-08-18 03:06:43 +02:00
|
|
|
script:
|
2016-12-26 21:07:18 +01:00
|
|
|
- ./vendor/bin/phpunit -c tests/phpunit.unit.sqlite.xml
|
|
|
|
- ./vendor/bin/phpunit -c tests/phpunit.unit.postgres.xml
|
2016-12-29 21:45:09 +01:00
|
|
|
- ./vendor/bin/phpunit -c tests/phpunit.functional.sqlite.xml
|
2016-12-30 00:04:56 +01:00
|
|
|
- cp ./tests/ci/config.postgres.php $TRAVIS_BUILD_DIR/config.php
|
|
|
|
- ./vendor/bin/phpunit -c tests/phpunit.functional.postgres.xml tests/functional/ApiTest.php
|
|
|
|
- ./vendor/bin/phpunit -c tests/phpunit.functional.postgres.xml tests/functional/FeverApiTest.php
|
2016-12-29 21:45:09 +01:00
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- cat apache_error.log
|
|
|
|
- cat apache_access.log
|