forked from KnpLabs/Gaufrette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 597 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
PHP_VERSION ?= 7.2
.PHONY: dev
dev:
cp .env.dist .env
.PHONY: build
build:
docker-compose build php${PHP_VERSION}
.PHONY: install-deps
install-deps:
docker/run-task php${PHP_VERSION} composer install
.PHONY: tests
tests:
docker/run-task php${PHP_VERSION} bin/tests
.PHONY: clear-deps
clear-deps:
rm -rf vendor/ composer.lock
.PHONY: php-cs-compare
php-cs-compare:
docker/run-task php${PHP_VERSION} vendor/bin/php-cs-fixer fix \
--diff \
--dry-run \
--show-progress=none \
--verbose
.PHONY: php-cs-fix
php-cs-fix:
docker/run-task php${PHP_VERSION} vendor/bin/php-cs-fixer fix