8000 minor #35630 [travis] fix patching return types of symfony/contracts … · symfony/symfony@3bfd4ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 3bfd4ed

Browse files
minor #35630 [travis] fix patching return types of symfony/contracts (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [travis] fix patching return types of symfony/contracts | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Fixing failing builds like https://travis-ci.org/symfony/symfony/jobs/647233182 Commits ------- 076a2a0 [travis] fix patching return types of symfony/contracts
2 parents ddc00ed + 076a2a0 commit 3bfd4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ install:
285285
(cd src/Symfony/Component/HttpFoundation; mv composer.bak composer.json)
286286
COMPONENTS=$(git diff --name-only src/ | grep composer.json || true)
287287
288-
if [[ $COMPONENTS && $LEGACY && $TRAVIS_PULL_REQUEST != false ]]; then
288+
if [[ $COMPONENTS && $LEGACY && $TRAVIS_BRANCH != master && $TRAVIS_PULL_REQUEST != false ]]; then
289289
export FLIP='🙃'
290290
SYMFONY_VERSION=$(echo $SYMFONY_VERSION | awk '{print $1 - 1}')
291291
echo -e "\\n\\e[33;1mChecking out Symfony $SYMFONY_VERSION and running tests with patched components as deps\\e[0m"
@@ -309,7 +309,7 @@ install:
309309
else
310310
if [[ $PHP = 7.4* ]]; then
311311
# add return types before running the test suite
312-
rm vendor/symfony/contracts -Rf
312+
rm src/Symfony/Contract -Rf && mv vendor/symfony/contracts src/Symfony/Contract
313313
ln -sd $(realpath src/Symfony/Contracts) vendor/symfony/contracts
314314
sed -i 's/"\*\*\/Tests\/"//' composer.json
315315
composer install --optimize-autoloader

0 commit comments

Comments
 (0)
0