Skip to content

Commit 5c38de9

Browse files
committed
Make file
1 parent 2b97230 commit 5c38de9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
all: cs unit
2+
travis: cs travis-unit
3+
contrib: cs unit
4+
5+
init:
6+
if [ ! -d vendor ]; then composer install; fi;
7+
8+
cs: init
9+
./vendor/bin/phpcs --standard=PSR2 src/
10+
11+
unit: init
12+
./vendor/bin/phpunit --coverage-text --coverage-html covHtml
13+
14+
travis-unit: init
15+
./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml
16+
17+
travis-coverage: init
18+
if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi
19+
20+
generate-resources: init
21+
./vendor/bin/api-client-resource-generator ./resources.yml

0 commit comments

Comments
 (0)