-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
50 lines (35 loc) · 1.02 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
46
47
48
49
50
default: build
build: install test
.PHONY: build
install:
composer install
.PHONY: install
update:
composer update
.PHONY: update
update-min:
composer update --prefer-stable --prefer-lowest
.PHONY: update-min
test: vendor cs phpspec behat
.PHONY: test
test-min: update-min cs phpspec behat
.PHONY: test-min
cs: vendor/bin/php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi fix
.PHONY: cs
cs-fix: vendor/bin/php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer --allow-risky=yes --no-interaction --ansi fix
.PHONY: cs-fix
phpspec: vendor/bin/phpspec
vendor/bin/phpspec run --format=dot
.PHONY: phpunit
behat: vendor/bin/behat
vendor/bin/behat --format=progress
.PHONY: phpunit
tools: vendor/bin/php-cs-fixer
.PHONY: tools
vendor: install
vendor/bin/behat: install
vendor/bin/phpspec: install
vendor/bin/php-cs-fixer:
curl -Ls http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o vendor/bin/php-cs-fixer && chmod +x vendor/bin/php-cs-fixer