-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 800 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 800 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
26
27
28
29
30
31
32
.PHONY: dev
dev:
docker compose up
.PHONY: stop
stop:
docker compose down
.PHONY: lint
lint:
vendor/bin/phpcs --standard=phpcs.xml.dist --warning-severity=0 -p src/ web/ test/
.PHONY: lint-fix
lint-fix:
vendor/bin/phpcbf --standard=phpcs.xml.dist --warning-severity=0 -p src/ web/ test/
.PHONY: test
test:
docker compose run --rm app ./project_tests.sh
.PHONY: import-article
import-article:
chmod a+w data/articles/
docker compose run app ./bin/import $(ARTICLE_ID)
.PHONY: import-reviewed-preprint
import-reviewed-preprint:
$(if $(REVIEWED_PREPRINT_ID),,$(error REVIEWED_PREPRINT_ID make variable needs to be set))
curl https://api.elifesciences.org/reviewed-preprints/$(REVIEWED_PREPRINT_ID) | jq . > data/reviewed-preprints/$(REVIEWED_PREPRINT_ID).json
vendor:
composer install