Optimized .travis file to use docker

This commit is contained in:
Kevin Frantz 2018-11-17 15:03:20 +01:00
parent a7c58ba135
commit 3b7dabafef

View File

@ -1,19 +1,19 @@
sudo: required
language: php language: php
php: php:
- 7.2 - 7.2
git: git:
submodules: false submodules: false
services:
- docker
before_install: before_install:
- 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
- cp phpunit.xml.dist phpunit.xml
before_script: before_script:
- travis_retry composer self-update - travis_retry bash administration/init.sh
- travis_retry composer install --no-interaction --prefer-source --dev
script: script:
- php ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ./src/ - bash administration/test-everything.sh
- bin/console doctrine:schema:validate --skip-sync
- vendor/bin/phpunit --coverage-clover=coverage.xml
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) - cd docker-symfony
- docker-compose exec php vendor/bin/phpunit --coverage-clover=coverage.xml
- docker-compose exec php bash <(curl -s https://codecov.io/bash)