Part-DB.Part-DB-server/.travis.yml
2019-10-20 19:56:49 +02:00

36 lines
No EOL
838 B
YAML

language: php
services:
- mysql
env:
- SYMFONY_DEPRECATIONS_HELPER=disabled APP_ENV=test # Disable deprecation warnings
# Test for all supported PHP versions
php:
- '7.1'
- '7.2'
- '7.3'
- '7.4snapshot'
# - 'nightly'
install:
- composer install
- php bin/console --env test doctrine:database:create --if-not-exists -n
- php bin/console --env test doctrine:migrations:migrate -n
# Load fixtures (We have to disable foreign key checks or we get errors)
- mysql -e "SET GLOBAL FOREIGN_KEY_CHECKS=0;"
- php bin/console --env test doctrine:fixtures:load -n
- mysql -e "SET GLOBAL FOREIGN_KEY_CHECKS=1;"
script:
- php bin/phpunit --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash)
matrix:
fast_finish: true
allow_failures:
- php: 7.4snapshot
# - php: nightly