commit
b08dcfc88d
|
@ -96,7 +96,7 @@ foreach ($composerJsons as list($dir, $lockedPackages)) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!$referencedCommits || (isset($_SERVER['TRAVIS_PULL_REQUEST']) && 'false' === $_SERVER['TRAVIS_PULL_REQUEST'])) {
|
||||
if (!$referencedCommits || (isset($_SERVER['TRAVIS_PULL_REQUEST']) && 'false' !== $_SERVER['TRAVIS_PULL_REQUEST'])) {
|
||||
// cached commits cannot be stale for PRs
|
||||
return;
|
||||
}
|
||||
|
@ -142,8 +142,10 @@ foreach ($referencedCommits as $name => $dirsByCommit) {
|
|||
foreach ($referencedCommits as $name => $dirsByCommit) {
|
||||
foreach ($dirsByCommit as $dirs) {
|
||||
foreach ($dirs as $dir) {
|
||||
echo "$dir/composer.lock references old commit for $name.\n";
|
||||
@unlink($dir.'/composer.lock');
|
||||
if (file_exists($dir.'/composer.lock')) {
|
||||
echo "$dir/composer.lock references old commit for $name.\n";
|
||||
@unlink($dir.'/composer.lock');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -216,7 +216,7 @@ install:
|
|||
else
|
||||
export SYMFONY_REQUIRE=">=$SYMFONY_VERSION"
|
||||
fi
|
||||
composer global require symfony/flex dev-master
|
||||
composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
|
||||
|
||||
- |
|
||||
# Legacy tests are skipped when deps=high and when the current branch version has not the same major version number than the next one
|
||||
|
|
|
@ -52,7 +52,7 @@ install:
|
|||
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/1.7.1/composer.phar)
|
||||
- php composer.phar self-update
|
||||
- copy /Y .composer\* %APPDATA%\Composer\
|
||||
- php composer.phar global require --no-progress symfony/flex dev-master
|
||||
- php composer.phar global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
|
||||
- php .github/build-packages.php "HEAD^" src\Symfony\Bridge\PhpUnit
|
||||
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
|
||||
- php composer.phar config platform.php 5.5.9
|
||||
|
|
Reference in New Issue