infinito/.travis.yml

28 lines
944 B
YAML
Raw Normal View History

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
git:
submodules: false
2018-11-22 19:36:49 +01:00
services:
- mysql
before_install:
2018-11-22 19:36:49 +01:00
- mysql -e 'CREATE DATABASE DEV_DATABASE;'
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- 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:
- 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:
- 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:
- bash <(curl -s https://codecov.io/bash)