Skip to content

Commit

Permalink
🤖 Exclude Integration tests from non-master builds (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
axlon committed May 4, 2019
1 parent 78ec2af commit df7c21e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Expand Up @@ -23,15 +23,20 @@ dist: xenial
sudo: false

before_install:
- composer require illuminate/support:"${ILLUMINATE_VERSION}" --no-update
- composer require orchestra/testbench:"${TESTBENCH_VERSION}" --no-update
- composer require phpunit/phpunit:"${PHPUNIT_VERSION}" --no-update
- composer require illuminate/support:${ILLUMINATE_VERSION} --no-update
- composer require orchestra/testbench:${TESTBENCH_VERSION} --dev --no-update
- composer require phpunit/phpunit:"${PHPUNIT_VERSION}" --dev --no-update

install:
- composer install --no-interaction --no-progress --no-suggest --prefer-dist

script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover --verbose
- |
if [ $TRAVIS_BRANCH == 'master' ]; then
./vendor/bin/phpunit --coverage-clover=coverage.clover --verbose
else
./vendor/bin/phpunit --coverage-clover=coverage.clover --testsuite=Unit --verbose
fi
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
Expand Down

0 comments on commit df7c21e

Please sign in to comment.