Skip to content

Commit 1df6763

Browse files
[travis] fix composer.lock invalidation for deps=low
1 parent 6a4de22 commit 1df6763

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ function getContentHash(array $composerJson)
4848

4949
foreach ($dirs as $dir) {
5050
if (!file_exists($dir.'/composer.lock') || !$composerLock = @json_decode(file_get_contents($dir.'/composer.lock'), true)) {
51-
echo "$dir/composer.lock not found or invalid.\n";
5251
@unlink($dir.'/composer.lock');
5352
continue;
5453
}
@@ -104,7 +103,9 @@ function getContentHash(array $composerJson)
104103
}
105104
}
106105

107-
if (!$referencedCommits || (isset($_SERVER['TRAVIS_PULL_REQUEST']) && 'false' !== $_SERVER['TRAVIS_PULL_REQUEST'])) {
106+
print_r($referencedCommits);
107+
108+
if (!$referencedCommits /*|| (isset($_SERVER['TRAVIS_PULL_REQUEST']) && 'false' !== $_SERVER['TRAVIS_PULL_REQUEST'])*/) {
108109
// cached commits cannot be stale for PRs
109110
return;
110111
}

0 commit comments

Comments
 (0)