Skip to content

Commit 09e93c6

Browse files
authored
Merge pull request #17 from noplanman/non_pr_live_tests
No live tests for PRs.
2 parents 2d58679 + a3b9b3e commit 09e93c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ install:
3939

4040
before_script:
4141
- mysql -u root -e 'create database telegrambot; use telegrambot; source ./vendor/longman/telegram-bot/structure.sql;'
42+
- if [[ "$COVERAGE" == "1" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then CODECOV="1"; fi
4243

4344
script:
4445
- composer check-code
45-
- if [[ "$COVERAGE" == "1" ]] ; then composer test-cov-live; fi
46-
- if [[ "$COVERAGE" != "1" ]] ; then composer test; fi
46+
- if [[ "$CODECOV" == "1" ]]; then composer test-cov-live; else composer test; fi
4747

4848
after_success:
49-
- if [[ "$COVERAGE" == "1" ]]; then composer test-cov-upload; fi
49+
- if [[ "$CODECOV" == "1" ]]; then composer test-cov-upload; fi
5050

5151
env:
5252
global:

0 commit comments

Comments
 (0)