forked from mjaschen/phpgeo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 972 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
44
45
46
47
48
UPLOAD_HOST=phpgeo.marcusjaschen.de
UPLOAD_PATH=phpgeo.marcusjaschen.de
PHP ?= php
.PHONY: docs
docs: daux
.PHONY: daux
daux:
rm -Rf build/daux
mkdir -p build/daux
docker run --rm -v "$(PWD)":/src -w /src daux/daux.io daux generate -d build/daux
.PHONY: clean
clean:
rm -Rf build
.PHONY: upload_docs
upload_docs: docs
rsync --recursive --delete build/daux/ $(UPLOAD_HOST):$(UPLOAD_PATH)/
.PHONY: ci
ci: lint coding-standards composer-validate sniff static-analysis-psalm unit-tests
.PHONY: coding-standards
coding-standards: sniff
.PHONY: composer-validate
composer-validate:
composer validate --no-check-publish
.PHONY: lint
lint:
$(PHP) ./vendor/bin/parallel-lint src
.PHONY: sniff
sniff:
# the `-` prefix ignores the exit status of the command
-$(PHP) ./vendor/bin/phpcs --standard=codesniffer_rules.xml src
.PHONY: static-analysis-psalm
static-analysis-psalm:
$(PHP) ./vendor/bin/psalm
.PHONY: unit-tests
unit-tests:
$(PHP) ./vendor/bin/phpunit