mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Upload test coverage information to codecov.
This commit is contained in:
parent
b7124d53b2
commit
1c4c4622cf
1 changed files with 5 additions and 3 deletions
|
@ -18,14 +18,16 @@ install:
|
||||||
- composer install
|
- composer install
|
||||||
- php bin/console --env test doctrine:database:create --if-not-exists -n
|
- php bin/console --env test doctrine:database:create --if-not-exists -n
|
||||||
- php bin/console --env test doctrine:migrations:migrate -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
|
# Load fixtures (We have to disable foreign key checks or we get errors)
|
||||||
#- php bin/console --env test doctrine:query:sql "SET foreign_key_checks = 0; TRUNCATE `groups`; TRUNCATE `users`;"
|
|
||||||
- mysql -e "SET GLOBAL FOREIGN_KEY_CHECKS=0;"
|
- mysql -e "SET GLOBAL FOREIGN_KEY_CHECKS=0;"
|
||||||
- php bin/console --env test doctrine:fixtures:load -n
|
- php bin/console --env test doctrine:fixtures:load -n
|
||||||
- mysql -e "SET GLOBAL FOREIGN_KEY_CHECKS=1;"
|
- mysql -e "SET GLOBAL FOREIGN_KEY_CHECKS=1;"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- php bin/phpunit
|
- php bin/phpunit --coverage-clover=coverage.xml
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue