-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (32 loc) · 879 Bytes
/
Makefile
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
SHELL = /bin/bash
openai-openapi:
git clone [email protected]:openai/openai-openapi.git
var/openapi-no-deprecated.yaml:
mkdir -p ./var
yq eval 'del(.paths | .. | select(has("deprecated") and .deprecated == true))' ./openai-openapi/openapi.yaml > $@
generated: openai-openapi
vendor/bin/jane-openapi generate
.PHONY: php
php:
docker-compose run --build php bash
.PHONY: rector-check
rector-check:
vendor/bin/rector process --clear-cache --dry-run
.PHONY: rector
rector:
vendor/bin/rector process --clear-cache
.PHONY: cs
cs:
vendor/bin/ecs --fix
.PHONY: cs-check
cs-check:
vendor/bin/ecs
.PHONY: phpunit
phpunit:
vendor/bin/phpunit
.PHONY: pre-commit
pre-commit:
$(MAKE) -k rector cs phpunit
.PHONY: build
build: var/openapi-no-deprecated.yaml
time (time bin/jane generate ; for in in {1..4} ; do time (vendor/bin/rector process ; vendor/bin/ecs --fix); done)