forked from seaphp/simple-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 644 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 644 Bytes
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
BUILDDIR = build/artifacts
clean:
-rm -rf $(BUILDDIR)/*
setup: clean
curl https://getcomposer.org/installer | php
composer.phar install
curl http://phpdoc.org/phpDocumentor.phar -o ./build/phpdoc.phar
chmod +x ./build/phpdoc.phar
curl http://get.sensiolabs.org/php-cs-fixer.phar -o ./build/php-cs-fixer.phar
chmod +x ./build/php-cs-fixer.phar
cp phpunit.xml.dist phpunit.xml
cs:
./build/php-cs-fixer.phar fix ./src
test:
./vendor/bin/phpunit --coverage-html $(BUILDDIR)/coverage
view-coverage:
open $(BUILDDIR)/coverage/index.html
docs:
./build/phpdoc -d ./src -t $(BUILDDIR)/api
view-docs:
open $(BUILDDIR)/api/index.html