forked from andres-montanez/Magallanes
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.0' of https://github.com/cyberhouse/Magallanes into 2.0
- Loading branch information
Showing
103 changed files
with
1,617 additions
and
970 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.