Skip to content

Commit 59730dc

Browse files
committed
Speed up tests, allow coverage to fail since thats a slow process
1 parent 5a97f54 commit 59730dc

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.travis.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ dist: trusty
33
git:
44
depth: 3
55
quiet: true
6+
matrix:
7+
fast_finish: true
8+
allow_failures:
9+
- env: TEST_SUITE=Coverage
610
env:
7-
- TEST_SUITE=Unit
8-
- TEST_SUITE=Integration
11+
matrix:
12+
- TEST_SUITE=Unit
13+
- TEST_SUITE=Coverage
14+
- TEST_SUITE=Integration
915
php:
1016
- 7.2
1117
sudo: false
@@ -21,7 +27,8 @@ before_script:
2127
- cp .env.travis .env
2228
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
2329
script:
24-
- if [ "$TEST_SUITE" = "Unit" ]; then vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-clover coverage.xml tests/Unit; fi;
30+
- if [ "$TEST_SUITE" = "Unit" ]; then vendor/bin/phpunit --bootstrap vendor/autoload.php tests/Unit; fi;
31+
- if [ "$TEST_SUITE" = "Coverage" ]; then vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-clover coverage.xml tests/Unit; fi;
2532
- if [ "$TEST_SUITE" = "Integration" ]; then vendor/bin/phpunit tests/Integration; fi;
2633
notifications:
2734
email: false

0 commit comments

Comments
 (0)