@@ -12,6 +12,7 @@ define require_phar
12
12
@[ -f ./$(1 ) ] || wget -q $(2 ) -O ./$(1 ) && chmod +x $(1 ) ;
13
13
endef
14
14
15
+ lint : # # Lint source code
15
16
lint : lint-php lint-psr2 lint-squiz
16
17
17
18
.PHONY : lint-php
@@ -29,6 +30,7 @@ lint-squiz:
29
30
./phpcs.phar --standard=Squiz,./ruleset.xml --colors -w -s --warning-severity=0 $(SOURCE_CODE_PATHS )
30
31
31
32
33
+ test : # # Execute all tests suites TDD and BDD
32
34
test : test-tdd test-bdd
33
35
34
36
.PHONY : test-tdd
@@ -39,28 +41,28 @@ test-tdd:
39
41
test-bdd :
40
42
./vendor/bin/phpspec run --format=pretty -v
41
43
42
- cover :
44
+ cover : # # Generate coverage report
43
45
./vendor/bin/phpunit --coverage-html $(COVERAGE_PATH ) test
44
46
45
- deps :
47
+ deps : # # Install dependencies
46
48
$(call require_phar,composer.phar,$(COMPOSER_PHAR ) )
47
49
./composer.phar install --no-dev
48
50
49
- dev-deps :
51
+ dev-deps : # # Install development dependencies
50
52
$(call require_phar,composer.phar,$(COMPOSER_PHAR ) )
51
53
./composer.phar install
52
54
53
- dist-clean :
55
+ dist-clean : # # Clean developer files, dependenciers and temporary files
54
56
rm -rf $(CLEAN_PATHS )
55
57
56
- docker-nats :
58
+ docker-nats : # # Start NATS container ( for testing purposes )
57
59
docker run --rm -p 8222:8222 -p 4222:4222 -d --name nats-main nats
58
60
59
- phpdoc :
61
+ phpdoc : # # Generate phpdoc API documentation
60
62
$(call require_phar,phpdoc.phar,$(PHPDOCUMENTOR_PHAR_URL ) )
61
63
./phpdoc.phar -d ./src/ -t $(API_DOCS_PATH ) --template=checkstyle --template=responsive-twig
62
64
63
- serve-phpdoc :
65
+ serve-phpdoc : # # Serve phpdoc API documentation at http;://localhost:8000
64
66
cd $(API_DOCS_PATH ) && php -S localhost:8000 && cd ../..
65
67
66
68
include Makefile.help.mk
0 commit comments