-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 799 Bytes
/
Makefile
File metadata and controls
25 lines (17 loc) · 799 Bytes
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
.PHONY: build test hh_autoload format
build:
docker build -t slack/hack-json-schema .
install: build
docker run -v `pwd`:/app -it slack/hack-json-schema composer install
update: build
docker run -v `pwd`:/app -it slack/hack-json-schema composer update
hh_autoload:
docker run -v `pwd`:/app -it slack/hack-json-schema ./vendor/bin/hh-autoload
test:
docker run -v `pwd`:/app -it slack/hack-json-schema ./vendor/bin/hacktest tests
lint:
docker run -v `pwd`:/app -it slack/hack-json-schema ./vendor/bin/hhast-lint
format:
docker run -v `pwd`:/app -it slack/hack-json-schema find {src,tests} -type f \( -name "*.hack" -o -name "*.php" \) -exec hackfmt -i {} \;
typecheck:
docker run -v `pwd`:/app -it slack/hack-json-schema /bin/bash -c './vendor/bin/hh-autoload && hh_server --check .'