-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (34 loc) · 1.04 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
.PHONY: hello all deploy clear install ci test test-functional checkstyle-ci checkstyle count-code security-check
hello:
@echo "Hi there, have a look at the other targets :)"
all: install clear ide-helper database-completely-new gulp test
deploy:
php composer.phar install
php artisan -vvv config:clear
clear:
php app/console -vvv cache:clear
php app/console -vvv config:clear
install:
php composer.phar install
ci:
php composer.phar validate --strict
php composer.phar install
make test
make security-check
make checkstyle-ci
test:
php vendor/bin/phpunit --testsuite ohl
php vendor/bin/phpunit --testsuite ohl-importer-passat
test-functional:
php vendor/bin/paratest --testsuite functional --phpunit=vendor/bin/phpunit -p 4
# This will fail on first checkstyle error.
checkstyle-ci:
php vendor/bin/php-cs-fixer fix --dry-run
# This will correct checkstyle.
checkstyle:
php vendor/bin/php-cs-fixer fix || true
count-code:
cloc app/ src/ database/
cloc resources/
security-check:
php vendor/bin/security-checker security:check