Skip to content

Commit 80bfead

Browse files
Merge branch '3.4' into 4.1
* 3.4: minor fix for travis
2 parents cd14b22 + b08dcfc commit 80bfead

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/rm-invalid-lowest-lock-files.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function getContentHash(array $composerJson)
9696
}
9797
}
9898

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'])) {
100100
// cached commits cannot be stale for PRs
101101
return;
102102
}
@@ -142,8 +142,10 @@ function getContentHash(array $composerJson)
142142
foreach ($referencedCommits as $name => $dirsByCommit) {
143143
foreach ($dirsByCommit as $dirs) {
144144
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+
}
147149
}
148150
}
149151
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ install:
194194
else
195195
export SYMFONY_REQUIRE=">=$SYMFONY_VERSION"
196196
fi
197-
composer global require symfony/flex dev-master
197+
composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
198198
199199
- |
200200
# Legacy tests are skipped when deps=high and when the current branch version has not the same major version number than the next one

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ install:
4444
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/1.7.1/composer.phar)
4545
- php composer.phar self-update
4646
- copy /Y .composer\* %APPDATA%\Composer\
47-
- php composer.phar global require --no-progress symfony/flex dev-master
47+
- php composer.phar global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
4848
- php .github/build-packages.php "HEAD^" src\Symfony\Bridge\PhpUnit
4949
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
5050
- php composer.phar update --no-progress --no-suggest --ansi

0 commit comments

Comments
 (0)