Skip to content

Commit e4c9de1

Browse files
committed
No live tests for PRs.
1 parent 2d58679 commit e4c9de1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,16 @@ before_script:
4242

4343
script:
4444
- composer check-code
45-
- if [[ "$COVERAGE" == "1" ]] ; then composer test-cov-live; fi
46-
- if [[ "$COVERAGE" != "1" ]] ; then composer test; fi
45+
- |
46+
if [[ "$COVERAGE" == "1" ]]; then
47+
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
48+
composer test-cov-live
49+
else
50+
composer test-cov
51+
fi
52+
else
53+
composer test
54+
fi
4755
4856
after_success:
4957
- if [[ "$COVERAGE" == "1" ]]; then composer test-cov-upload; fi

0 commit comments

Comments
 (0)