Skip to content

Commit

Permalink
use phpunit flags
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Jun 23, 2019
1 parent c29782e commit aaa8814
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
language: php

cache:
directories:
- vendor
- $HOME/.composer/cache

git:
depth: 2

Expand All @@ -13,15 +18,16 @@ before_script:
- composer install --prefer-source --no-interaction

install:
- if [[ $COVERAGE == true ]]; then composer require php-coveralls/php-coveralls; fi
- if [ $COVERAGE ]; then composer require php-coveralls/php-coveralls; fi
- if [ $COVERAGE ]; then PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"; fi
- composer require jakub-onderka/php-parallel-lint

script:
- mkdir -p build/logs
- vendor/bin/parallel-lint --exclude vendor .
- vendor/bin/phpunit --configuration phpunit.xml --coverage-clover build/logs/clover.xml
- vendor/bin/phpunit $PHPUNIT_FLAGS

after_success:
- if [[ $COVERAGE == true ]]; then travis_retry php vendor/bin/php-coveralls -v; fi
- if [ $COVERAGE ]; then travis_retry php vendor/bin/php-coveralls -v; fi


0 comments on commit aaa8814

Please sign in to comment.