forked from andres-montanez/Magallanes
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
33 lines (23 loc) · 836 Bytes
/
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
default: vendor/autoload.php
test: vendor/autoload.php
./bin/phpcs --encoding=utf-8 --colors -p --standard=ruleset.xml --extensions=php --severity=1 src/
./bin/phpcs --encoding=utf-8 --colors -p --standard=ruleset.xml --extensions=php --severity=1 tests/
./bin/phpunit -c phpunit.xml.dist tests/
fix: composer.phar
./bin/php-cs-fixer fix --config-file=.php_cs
phar: mage.phar
install: /usr/local/bin/mage
clean:
rm -rf vendor
cd bin && rm -f coveralls php*
rm -f *.phar
rm -f .php_cs.cache composer.lock
.PHONY: test fix default clean phar install
vendor/autoload.php: composer.phar
php composer.phar install -o
composer.phar:
php -r "readfile('https://getcomposer.org/installer');" | php
mage.phar: test
php phar.php
/usr/local/bin/mage: mage.phar
cp mage.phar /usr/local/bin/mage && chmod +x /usr/local/bin/mage