10000 minor #14047 [travis] Kill tests when a new commit has been pushed (n… · symfony/symfony@d5673c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d5673c2

Browse files
committed
minor #14047 [travis] Kill tests when a new commit has been pushed (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- [travis] Kill tests when a new commit has been pushed | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- e29f74e [travis] Kill tests when a new commit has been pushed
2 parents c1c648e + e29f74e commit d5673c2

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