From 1c4c4622cfe5fd02e5eb8e805cbaf3f487170b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 20 Oct 2019 19:56:49 +0200 Subject: [PATCH] Upload test coverage information to codecov. --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c8e6f962..d13695aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,14 +18,16 @@ 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 truncate database by ourselves or we get foreing key valiation errors - #- php bin/console --env test doctrine:query:sql "SET foreign_key_checks = 0; TRUNCATE `groups`; TRUNCATE `users`;" + # 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 + - php bin/phpunit --coverage-clover=coverage.xml + +after_success: + - bash <(curl -s https://codecov.io/bash) matrix: fast_finish: true