-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
39 lines (29 loc) · 960 Bytes
/
justfile
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
39
set dotenv-load := true
set shell := ["bash", "-c"]
all:
just grumphp
just test "7.4"
just test "8.0"
just test "8.1"
_docker version command:
docker run --rm -v $(pwd):/app -w /app kanti/buildy:{{ version }} {{ command }}
_clean:
just _docker "8.0" "rm -rf .Build/ composer.lock"
install version="8.0":
just _clean
just _docker {{ version }} "composer install"
require req version="8.0":
just _clean
just _docker {{ version }} "composer req {{ req }}"
grumphp version="8.0":
just install {{ version }}
just _docker {{ version }} ".Build/bin/grumphp run"
phpstan version="8.0":
just install {{ version }}
just _docker {{ version }} "composer phpstan"
fix:
just install "8.0"
just _docker "8.0" "/app/.Build/bin/php-cs-fixer --config=.php-cs-fixer.dist.php --using-cache=no --verbose fix"
test version="8.0":
just install {{ version }}
just _docker {{ version }} "composer test"