mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 02:14:31 +02:00
[Travis] Generate code coverage only for PHP 7.2.
This commit is contained in:
parent
aee6224082
commit
47c08e050b
1 changed files with 6 additions and 3 deletions
|
@ -27,7 +27,10 @@ install:
|
|||
- mysql -e "SET GLOBAL FOREIGN_KEY_CHECKS=1;"
|
||||
|
||||
script:
|
||||
- php bin/phpunit --coverage-clover=coverage.xml
|
||||
# Only run code coverage on PHP 7.2 to improve performance (code coverage is slower than normal testing)
|
||||
- if [[ $(phpenv version-name) == '7.2' ]]; then php bin/phpunit --coverage-clover=coverage.xml ; fi
|
||||
- if [[ $(phpenv version-name) != '7.2' ]]; then vendor/bin/phpunit ; fi
|
||||
|
||||
# Perform some simple linting if everything is correct
|
||||
- ./bin/console lint:yaml config --parse-tags
|
||||
- ./bin/console lint:twig templates --env=prod
|
||||
|
@ -38,7 +41,7 @@ script:
|
|||
- ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
- if [[ $(phpenv version-name) == '7.2' ]]; then bash <(curl -s https://codecov.io/bash) ; fi
|
||||
-
|
||||
matrix:
|
||||
fast_finish: true
|
Loading…
Add table
Add a link
Reference in a new issue