Skip to content

Commit

Permalink
Move Infection to vendor-bin/ (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
villfa authored Sep 24, 2020
1 parent ce36a07 commit 84896c1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ tc: bin/phpunit
phpdbg -qrr -d zend.enable_gc=0 bin/phpunit --coverage-html=dist/coverage --coverage-text

.PHONY: tm
INFECTION=vendor-bin/infection/vendor/bin/infection
tm: ## Runs Infection
tm: $(TU_BOX_DEPS)
$(PHPNOGC) bin/infection --only-covered
tm: $(TU_BOX_DEPS) $(INFECTION)
$(PHPNOGC) $(INFECTION) --only-covered

.PHONY: e2e
e2e: ## Runs all the end-to-end tests
Expand Down Expand Up @@ -326,6 +327,10 @@ $(CODE_SNIFFER_FIX): vendor/bamarni
composer bin doctrine-cs install
touch $@

$(INFECTION): vendor/bamarni
composer bin infection install
touch $@

fixtures/composer-dump/dir001/composer.lock: fixtures/composer-dump/dir001/composer.json
composer install --working-dir fixtures/composer-dump/dir001
touch $@
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.3",
"infection/infection": "^0.15",
"mikey179/vfsstream": "^1.6",
"phpunit/phpunit": "^8.1",
"symfony/phpunit-bridge": "^4.2 || ^5.0"
Expand Down
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
totallyTyped="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config file:///Users/tfidry/Project/Humbug/box/vendor-bin/psalm/vendor/vimeo/psalm/config.xsd"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor-bin/psalm/vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
Expand Down
5 changes: 5 additions & 0 deletions vendor-bin/infection/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"infection/infection": "^0.15"
}
}

0 comments on commit 84896c1

Please sign in to comment.