2016-11-29 09:51:09 +01:00
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- '5.6'
|
|
|
|
- '7.0'
|
2017-01-12 14:49:08 +01:00
|
|
|
- '7.1'
|
2018-07-05 23:28:19 +02:00
|
|
|
- '7.2'
|
2018-11-27 11:01:19 +01:00
|
|
|
- '7.3'
|
2019-11-28 16:18:30 +01:00
|
|
|
- '7.4snapshot'
|
2017-01-12 14:49:08 +01:00
|
|
|
- nightly
|
2016-11-29 09:51:09 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- postgresql
|
|
|
|
|
2019-09-11 23:22:49 +02:00
|
|
|
#cache:
|
|
|
|
# directories:
|
|
|
|
# - vendor
|
2016-11-29 09:51:09 +01:00
|
|
|
|
2017-02-02 20:59:43 +01:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2018-09-18 10:48:31 +02:00
|
|
|
include:
|
|
|
|
- env: CHECK=phpcs
|
|
|
|
php: nightly # Note: will be allowed failure
|
|
|
|
- env: CHECK=phpcs
|
|
|
|
php: '7.0'
|
|
|
|
- env: CHECK=phpcs
|
2019-08-19 11:18:27 +02:00
|
|
|
php: '5.6'
|
2017-02-02 20:59:43 +01:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
|
|
|
|
2016-11-29 09:51:09 +01:00
|
|
|
env:
|
2018-09-18 10:48:31 +02:00
|
|
|
- CHECK=phpunit DB=mysql DIRECTOR_TESTDB_RES="Director MySQL TestDB" DIRECTOR_TESTDB="director_test"
|
|
|
|
- CHECK=phpunit DB=pgsql DIRECTOR_TESTDB_RES="Director PostgreSQL TestDB" DIRECTOR_TESTDB="director_test"
|
2016-11-29 09:51:09 +01:00
|
|
|
DIRECTOR_TESTDB_USER="director_test"
|
|
|
|
|
|
|
|
before_script:
|
2017-08-30 09:35:47 +02:00
|
|
|
- ./test/setup_vendor.sh
|
2018-09-18 10:48:31 +02:00
|
|
|
- '[ "$CHECK" != phpunit ] || ./test/travis-prepare.sh'
|
2017-01-12 14:49:08 +01:00
|
|
|
|
|
|
|
script:
|
2018-09-18 10:48:31 +02:00
|
|
|
- '[ "$CHECK" != phpcs ] || php vendor/phpcs.phar'
|
|
|
|
- '[ "$CHECK" != phpunit ] || php vendor/phpunit.phar --testdox || php vendor/phpunit.phar --verbose'
|