8000 [travis] Kill tests when a new commit has been pushed · symfony/symfony@e29f74e · GitHub
[go: up one dir, main page]

Skip to content

Commit e29f74e

Browse files
[travis] Kill tests when a new commit has been pushed
1 parent 86e9b94 commit e29f74e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ env:
2626
- SYMFONY_DEPRECATIONS_HELPER=weak
2727

2828
before_install:
29+
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then git fetch origin "refs/pull/$TRAVIS_PULL_REQUEST/merge"; else git fetch origin "$TRAVIS_BRANCH"; fi;
30+
- if [[ "$TRAVIS_COMMIT" != `git rev-parse FETCH_HEAD` ]]; then echo "Pull request or branch commit hash has changed, aborting!"; exit 1; fi;
2931
- travis_retry sudo apt-get install parallel
3032
- composer self-update
3133
- if [[ "$TRAVIS_PHP_VERSION" != *"nightly" ]]; then phpenv config-rm xdebug.ini; fi;

0 commit comments

Comments
 (0)
0