-
-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathJustfile
More file actions
106 lines (79 loc) · 2.52 KB
/
Justfile
File metadata and controls
106 lines (79 loc) · 2.52 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
list:
@just --list
install:
composer install
fmt:
./vendor/bin/mago --config config/mago.toml fmt
fmt-diff:
./vendor/bin/mago --config config/mago.toml fmt --diff
fmt-check:
./vendor/bin/mago --config config/mago.toml fmt --check
lint:
./vendor/bin/mago --config config/mago.toml lint --minimum-fail-level warning
fix:
./vendor/bin/mago --config config/mago.toml analyze --fix
./vendor/bin/mago --config config/mago.toml lint --fix
./vendor/bin/mago --config config/mago.toml fmt
analyze:
./vendor/bin/mago --config config/mago.toml analyze --minimum-fail-level warning
bench:
./vendor/bin/phpbench run --config config/phpbench.json
bench-reference:
./vendor/bin/phpbench run --config config/phpbench.json --tag=benchmark_reference
bench-compare:
./vendor/bin/phpbench run --config config/phpbench.json --ref=benchmark_reference
test:
php -dmemory_limit=-1 ./vendor/bin/phpunit -c config/phpunit.xml.dist
mutation:
php -dmemory_limit=-1 -dopcache.enable=0 ./vendor/bin/infection --configuration=config/infection.json.dist
coverage:
php -dmemory_limit=-1 ./vendor/bin/phpunit -c config/phpunit.xml.dist --coverage-clover var/clover.xml
php -dmemory_limit=-1 ./vendor/bin/php-coveralls -x var/clover.xml -o var/coveralls-upload.json -v
docs:
php docs/generate.php
docs-serve: docs
php -S localhost:8000 -t docs/dist
php:
which php
split-install:
cd splitter && composer install
split-check:
cd splitter && php bin/splitter check
split branch:
cd splitter && php bin/splitter split --branch {{branch}}
split-tag tag:
cd splitter && php bin/splitter tag {{tag}}
split-release tag:
cd splitter && php bin/splitter release {{tag}}
split-prepare version:
cd splitter && php bin/splitter prepare {{version}}
split-audit:
cd splitter && php bin/splitter audit
install-packages:
#!/usr/bin/env bash
set -euo pipefail
for dir in packages/*/; do
comp=$(basename "$dir")
cd "$dir"
composer update
cd ../..
done
install-packages-lowest:
#!/usr/bin/env bash
set -euo pipefail
for dir in packages/*/; do
comp=$(basename "$dir")
cd "$dir"
composer update --prefer-lowest --prefer-stable
cd ../..
done
test-packages:
#!/usr/bin/env bash
set -euo pipefail
for dir in packages/*/; do
comp=$(basename "$dir")
cd "$dir"
vendor/bin/phpunit --no-coverage
cd ../..
done
verify: fmt-diff lint analyze split-check test mutation