Speed up tests, allow coverage to fail since thats a slow process
This commit is contained in:
parent
5a97f54013
commit
59730dcbc9
1 changed files with 10 additions and 3 deletions
|
@ -3,8 +3,14 @@ dist: trusty
|
||||||
git:
|
git:
|
||||||
depth: 3
|
depth: 3
|
||||||
quiet: true
|
quiet: true
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
allow_failures:
|
||||||
|
- env: TEST_SUITE=Coverage
|
||||||
env:
|
env:
|
||||||
|
matrix:
|
||||||
- TEST_SUITE=Unit
|
- TEST_SUITE=Unit
|
||||||
|
- TEST_SUITE=Coverage
|
||||||
- TEST_SUITE=Integration
|
- TEST_SUITE=Integration
|
||||||
php:
|
php:
|
||||||
- 7.2
|
- 7.2
|
||||||
|
@ -21,7 +27,8 @@ before_script:
|
||||||
- cp .env.travis .env
|
- cp .env.travis .env
|
||||||
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
|
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
|
||||||
script:
|
script:
|
||||||
- if [ "$TEST_SUITE" = "Unit" ]; then vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-clover coverage.xml tests/Unit; fi;
|
- if [ "$TEST_SUITE" = "Unit" ]; then vendor/bin/phpunit --bootstrap vendor/autoload.php tests/Unit; fi;
|
||||||
|
- if [ "$TEST_SUITE" = "Coverage" ]; then vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-clover coverage.xml tests/Unit; fi;
|
||||||
- if [ "$TEST_SUITE" = "Integration" ]; then vendor/bin/phpunit tests/Integration; fi;
|
- if [ "$TEST_SUITE" = "Integration" ]; then vendor/bin/phpunit tests/Integration; fi;
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
Loading…
Reference in a new issue