-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
64 lines (43 loc) · 1.6 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
51
52
53
54
55
56
57
58
59
60
61
62
63
all: install
build:
mkdir -p build
install: var/translations var/cache var/logs
composer install
tests/console --env=test cache:clear
install-ci:
composer install --no-interaction --no-progress --ignore-platform-reqs
tests/console --env=test cache:clear --no-interaction
lint: lint-php lint-twig lint-yaml lint-xliff
lint-ci: lint-php-ci lint-twig lint-yaml lint-xliff
lint-php:
./vendor/bin/phpcs
lint-php-ci: build
./vendor/bin/phpcs --report-checkstyle=build/phpcs-checkstyle.xml --report-full
lint-twig:
tests/console lint:twig src tests
lint-yaml:
tests/console lint:yaml src
tests/console lint:yaml tests
lint-xliff:
tests/console lint:xliff src
tests/console lint:xliff tests
stan:
./vendor/bin/phpstan analyse -c phpstan.neon -l 5 src
stan-ci: build
./vendor/bin/phpstan --no-interaction --no-progress analyse --error-format=checkstyle -c phpstan.neon -l 5 src > build/phpstan-checkstyle.xml
test: test-phpunit
test-phpunit: var/cache var/logs var/translations
./vendor/bin/phpunit --configuration ./phpunit.xml
test-phpunit-ci: var/cache var/logs var/translations build
chmod -R 777 ./var/logs
php -dxdebug.coverage_enable=1 ./vendor/bin/phpunit --configuration ./phpunit.xml --log-junit build/junit.xml --coverage-clover ./clover.xml
var/cache:
mkdir -p var/cache
var/logs:
mkdir -p var/logs
var/translations:
mkdir -p var/translations
.PHONY: all install install-ci lint lint-ci lint-php lint-php-ci lint-yaml lint-twig lint-xliff stan stan-ci test test-phpunit test-phpunit-ci
composer-update:
docker pull composer
docker run --rm --interactive --tty --volume $PWD:/app composer update