Skip to content

Commit 13a5101

Browse files
minor fix for travis
1 parent 68c00ad commit 13a5101

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
@@ -195,7 +195,7 @@ install:
195195
else
196196
export SYMFONY_REQUIRE=">=$SYMFONY_VERSION"
197197
fi
198-
composer global require symfony/flex dev-master
198+
composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
199199
200200
- |
201201
# 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
@@ -55,7 +55,7 @@ install:
5555
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/1.7.1/composer.phar)
5656
- php composer.phar self-update
5757
- 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
5959
- php .github/build-packages.php "HEAD^" src\Symfony\Bridge\PhpUnit
6060
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
6161
- php composer.phar config platform.php 5.3.9

0 commit comments

Comments
 (0)