File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ function getContentHash(array $composerJson)
96
96
}
97
97
}
98
98
99
- if (!$ referencedCommits || (isset ($ _SERVER ['TRAVIS_PULL_REQUEST ' ]) && 'false ' = == $ _SERVER ['TRAVIS_PULL_REQUEST ' ])) {
99
+ if (!$ referencedCommits || (isset ($ _SERVER ['TRAVIS_PULL_REQUEST ' ]) && 'false ' ! == $ _SERVER ['TRAVIS_PULL_REQUEST ' ])) {
100
100
// cached commits cannot be stale for PRs
101
101
return ;
102
102
}
@@ -142,8 +142,10 @@ function getContentHash(array $composerJson)
142
142
foreach ($ referencedCommits as $ name => $ dirsByCommit ) {
143
143
foreach ($ dirsByCommit as $ dirs ) {
144
144
foreach ($ dirs as $ dir ) {
145
- echo "$ dir/composer.lock references old commit for $ name. \n" ;
146
- @unlink ($ dir .'/composer.lock ' );
145
+ if (file_exists ($ dir .'/composer.lock ' )) {
146
+ echo "$ dir/composer.lock references old commit for $ name. \n" ;
147
+ @unlink ($ dir .'/composer.lock ' );
148
+ }
147
149
}
148
150
}
149
151
}
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ install:
195
195
else
196
196
export SYMFONY_REQUIRE=">=$SYMFONY_VERSION"
197
197
fi
198
- composer global require symfony/flex dev-master
198
+ composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
199
199
200
200
- |
201
201
# Legacy tests are skipped when deps=high and when the current branch version has not the same major version number than the next one
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ install:
55
55
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/1.7.1/composer.phar)
56
56
- php composer.phar self-update
57
57
- copy /Y .composer\* %APPDATA%\Composer\
58
- - php composer.phar global require --no-progress symfony/flex dev-master
58
+ - php composer.phar global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
59
59
- php .github/build-packages.php "HEAD^" src\Symfony\Bridge\PhpUnit
60
60
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
61
61
- php composer.phar config platform.php 5.3.9
You can’t perform that action at this time.
0 commit comments