2019-03-27 13:28:45 +01:00
|
|
|
language: php
|
|
|
|
|
|
2019-10-20 14:35:19 +02:00
|
|
|
services:
|
|
|
|
|
- mysql
|
|
|
|
|
|
2019-03-27 16:28:01 +01:00
|
|
|
env:
|
|
|
|
|
- SYMFONY_DEPRECATIONS_HELPER=disabled # Disable deprecation warnings
|
2019-10-20 14:35:19 +02:00
|
|
|
- APP_ENV=test
|
2019-03-27 16:28:01 +01:00
|
|
|
|
2019-03-27 13:28:45 +01:00
|
|
|
# Test for all supported PHP versions
|
|
|
|
|
php:
|
|
|
|
|
- '7.1'
|
|
|
|
|
- '7.2'
|
|
|
|
|
- '7.3'
|
2019-09-23 13:01:37 +02:00
|
|
|
- '7.4snapshot'
|
|
|
|
|
- 'nightly'
|
2019-03-27 13:32:45 +01:00
|
|
|
|
|
|
|
|
install:
|
2019-03-27 16:00:08 +01:00
|
|
|
- composer install
|
2019-10-20 15:19:32 +02:00
|
|
|
- php bin/console --env test doctrine:database:create --if-not-exists -n
|
2019-10-20 15:28:47 +02:00
|
|
|
# Migration is just for testing if it work, it is overwritten immediately
|
2019-10-20 15:11:42 +02:00
|
|
|
- php bin/console --env test doctrine:migrations:migrate -n
|
2019-10-20 15:28:47 +02:00
|
|
|
# Load fixtures (workaround https://github.com/doctrine/DoctrineFixturesBundle/issues/50)
|
2019-10-20 15:31:16 +02:00
|
|
|
- bin/console --env test doctrine:schema:drop --force
|
|
|
|
|
- bin/console --env test doctrine:schema:update --force
|
|
|
|
|
- bin/console --env test doctrine:fixtures:load -n
|
2019-03-27 16:00:08 +01:00
|
|
|
|
|
|
|
|
script:
|
2019-09-23 13:01:37 +02:00
|
|
|
- php bin/phpunit
|
|
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
|
fast_finish: true
|
|
|
|
|
allow_failures:
|
|
|
|
|
- php: 7.4snapshot
|
|
|
|
|
- php: nightly
|