From 59730dcbc917e2e27a3bfa047b92300f7c9726bb Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 30 Jun 2018 18:01:23 -0700 Subject: [PATCH] Speed up tests, allow coverage to fail since thats a slow process --- .travis.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7eb6bfb5e..ff915fa1e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,15 @@ dist: trusty git: depth: 3 quiet: true +matrix: + fast_finish: true + allow_failures: + - env: TEST_SUITE=Coverage env: - - TEST_SUITE=Unit - - TEST_SUITE=Integration + matrix: + - TEST_SUITE=Unit + - TEST_SUITE=Coverage + - TEST_SUITE=Integration php: - 7.2 sudo: false @@ -21,7 +27,8 @@ before_script: - cp .env.travis .env - travis_retry composer install --no-interaction --prefer-dist --no-suggest 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; notifications: email: false