We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d694e60 commit 1f20bf6Copy full SHA for 1f20bf6
.travis.yml
@@ -47,5 +47,12 @@ script:
47
- testing/run_all_tests.sh
48
49
after_success:
50
- - composer require "satooshi/php-coveralls:^1.0"
51
- - travis_retry php vendor/bin/coveralls -v
+ - |
+ # if we are running all the tests, run coveralls
52
+ FILES_CHANGED=$(git diff --name-only HEAD $(git merge-base HEAD master))
53
+ if grep -q ^testing\/ <<< "$FILES_CHANGED" || \
54
+ grep -qv \/ <<< "$FILES_CHANGED" || \
55
+ [ -e $TRAVIS_PULL_REQUEST_BRANCH ]; then
56
+ composer require "satooshi/php-coveralls:^1.0"
57
+ travis_retry php vendor/bin/coveralls -v
58
+ fi
0 commit comments