-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (30 loc) · 1.07 KB
/
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
.PHONY: phpcs phpstan codeception test install install-dev bundle docker-tag docker-login docker-push docker-build grumphp update
update:
composer update
install:
composer install --no-dev
install-dev:
composer install
bundle: install
box compile
docker-tag: docker-build
docker tag dandelionphp/dandelion dandelionphp/dandelion:$(IMAGE_TAG)
docker-build:
docker build -t dandelionphp/dandelion .
docker-login:
echo "$(DOCKER_PASSWORD)" | docker login -u "$(DOCKER_USERNAME)" --password-stdin
docker-push: docker-login
docker push dandelionphp/dandelion:latest
docker push dandelionphp/dandelion:$(IMAGE_TAG)
phpcs:
./vendor/bin/phpcs --standard=./vendor/squizlabs/php_codesniffer/src/Standards/PSR12/ruleset.xml ./src/
phpstan:
./vendor/bin/phpstan analyse
codeception:
./vendor/bin/codecept run --coverage --coverage-xml --coverage-html
phpmd:
./vendor/bin/phpmd ./src xml cleancode,codesize,controversial,design --exclude DandelionServiceProvider,Git,Filesystem
phpcpd:
./vendor/bin/phpcpd ./src
ci: phpcs phpstan codeception phpmd phpcpd
test: install-dev ci