2018-10-30 18:45:43 +01:00
|
|
|
language: php
|
2018-10-30 19:24:12 +01:00
|
|
|
php:
|
2018-10-30 19:22:55 +01:00
|
|
|
- 7.2
|
2018-10-30 18:51:21 +01:00
|
|
|
git:
|
|
|
|
submodules: false
|
2018-11-22 19:36:49 +01:00
|
|
|
services:
|
|
|
|
- mysql
|
2018-10-30 18:51:21 +01:00
|
|
|
before_install:
|
2018-11-22 19:36:49 +01:00
|
|
|
- mysql -e 'CREATE DATABASE DEV_DATABASE;'
|
2018-10-30 18:51:21 +01:00
|
|
|
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
|
|
|
|
- git submodule update --init --recursive
|
2018-11-18 10:20:44 +01:00
|
|
|
- cd application
|
|
|
|
- cp phpunit.xml.dist phpunit.xml
|
2018-11-22 20:00:49 +01:00
|
|
|
- cp .env.dist .env
|
2018-11-22 19:38:56 +01:00
|
|
|
- sed -i 's/DEV_USER:userpass@db/travis@127.0.0.1/g' phpunit.xml
|
2018-11-22 19:56:31 +01:00
|
|
|
- sed -i 's/DEV_USER:userpass@db/travis@127.0.0.1/g' .env
|
2018-10-30 18:45:43 +01:00
|
|
|
before_script:
|
2018-11-18 10:20:44 +01:00
|
|
|
- travis_retry composer self-update
|
|
|
|
- travis_retry composer install --no-interaction --prefer-source --dev
|
2018-11-23 22:37:16 +01:00
|
|
|
- bin/console doctrine:schema:update --force
|
|
|
|
- php bin/console doctrine:fixtures:load -n
|
2018-10-30 18:45:43 +01:00
|
|
|
script:
|
2018-11-18 10:20:44 +01:00
|
|
|
- php ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ./src/
|
|
|
|
- bin/console doctrine:schema:validate --skip-sync
|
|
|
|
- vendor/bin/phpunit --coverage-clover=coverage.xml
|
2018-10-30 18:45:43 +01:00
|
|
|
after_success:
|
2018-11-18 10:20:44 +01:00
|
|
|
- bash <(curl -s https://codecov.io/bash)
|