Skip to content

Commit e18a1f0

Browse files
authored
Merge pull request #3 from jakzal/tools-dir
Move tools to its own directory instead of using vendor/bin
2 parents 23a5911 + f60b6d3 commit e18a1f0

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,24 @@ test: vendor cs phpunit
2121
test-min: update-min cs phpunit
2222
.PHONY: test-min
2323

24-
cs: vendor/bin/php-cs-fixer
25-
vendor/bin/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi fix
24+
cs: tools/php-cs-fixer
25+
tools/php-cs-fixer --dry-run --allow-risky=yes --no-interaction --ansi fix
2626
.PHONY: cs
2727

28-
cs-fix: vendor/bin/php-cs-fixer
29-
vendor/bin/php-cs-fixer --allow-risky=yes --no-interaction --ansi fix
28+
cs-fix: tools/php-cs-fixer
29+
tools/php-cs-fixer --allow-risky=yes --no-interaction --ansi fix
3030
.PHONY: cs-fix
3131

32-
phpunit: vendor/bin/phpunit
33-
vendor/bin/phpunit
32+
phpunit: tools/phpunit
33+
tools/phpunit
3434
.PHONY: phpunit
3535

3636
vendor: install
3737

3838
vendor/bin/phpunit: install
3939

40-
vendor/bin/php-cs-fixer:
41-
curl -Ls http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o vendor/bin/php-cs-fixer && chmod +x vendor/bin/php-cs-fixer
40+
tools/phpunit: vendor/bin/phpunit
41+
ln -sf ../vendor/bin/phpunit tools/phpunit
4242

43+
tools/php-cs-fixer:
44+
curl -Ls http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer

tools/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

0 commit comments

Comments
 (0)