Added mysql to travis

This commit is contained in:
Kevin Frantz 2018-11-22 19:36:49 +01:00
parent c54ef4d2ca
commit b6ae4786db

View File

@ -3,14 +3,19 @@ php:
- 7.2 - 7.2
git: git:
submodules: false submodules: false
services:
- mysql
before_install: before_install:
- mysql -e 'CREATE DATABASE DEV_DATABASE;'
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive - git submodule update --init --recursive
- cd application - cd application
- cp phpunit.xml.dist phpunit.xml - cp phpunit.xml.dist phpunit.xml
- sed -i 's/DEV_USER:userpass@db\travis@127.0.0.1/g' phpunit.xml
before_script: before_script:
- travis_retry composer self-update - travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev - travis_retry composer install --no-interaction --prefer-source --dev
- travis_retry bin/console doctrine:schema:update --force
script: script:
- php ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ./src/ - php ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ./src/
- bin/console doctrine:schema:validate --skip-sync - bin/console doctrine:schema:validate --skip-sync