-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprepare-lockfiles.sh
executable file
·38 lines (32 loc) · 1.48 KB
/
prepare-lockfiles.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env php
<?php
require_once 'vendor/autoload.php';
use Illuminate\Support\Collection;
Collection::make([7.1, 7.2, 7.3, 7.4])
->each(
function ($php) {
Collection::make(5.8, 6)
->each(
function ($laravel) use ($php) {
$testbench = $laravel - 2;
$phpunit = $laravel >= 6 ? '~7.0' : '~6.0';
Collection::make([5, 6, 7])
->each(
function ($elasticsearch) use ($laravel, $php, $testbench, $phpunit) {
$composer = "php${php} `which composer`";
`
git checkout composer.json
rm -rf composer.lock vendor
$composer require --no-suggest --prefer-dist --profile \
elasticsearch/elasticsearch:^$elasticsearch \
illuminate/support:$laravel \
orchestra/testbench:$testbench \
phpunit/phpunit:$phpunit &&
mv composer.lock "lockfiles/php-$php-laravel-$laravel-es-$elasticsearch.lock"
`;
}
);
}
);
}
);