-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 742 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 742 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
pretest:
if [ ! -d vendor ] || [ ! -f composer.lock ]; then composer install; else echo "Already have dependencies"; fi
phpunit-ci: pretest
[ ! -f build ] && mkdir -p build
php ${EXT_PHP} vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.clover
phpcbf: pretest
vendor/bin/phpcbf --standard=PSR1,PSR2 -n src test/unit
phpcs: pretest
vendor/bin/phpcs --standard=PSR1,PSR2 -n src test/unit
ocular:
wget https://scrutinizer-ci.com/ocular.phar
ifdef OCULAR_TOKEN
scrutinizer: ocular
@php ocular.phar code-coverage:upload --format=php-clover build/coverage.clover --access-token=$(OCULAR_TOKEN);
else
scrutinizer: ocular
php ocular.phar code-coverage:upload --format=php-clover build/coverage.clover;
endif