Skip to content

Commit

Permalink
Makefile fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed May 9, 2022
1 parent 28f125b commit 527211a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,43 +1,55 @@
.PHONY: mu
mu: vendor ## Mutation tests
vendor/bin/infection -s --threads=$(nproc) --min-msi=23 --min-covered-msi=45
vendor/bin/phpunit --coverage-text

.PHONY: tests
tests: vendor ## Run all tests
vendor/bin/phpunit --color

.PHONY: cc
cc: vendor ## Show test coverage rates (HTML)
vendor/bin/phpunit --coverage-html ./build

.PHONY: cs
cs: vendor ## Fix all files using defined ECS rules
vendor/bin/ecs check --fix

.PHONY: tu
tu: vendor ## Run only unit tests
vendor/bin/phpunit --color --group Unit

.PHONY: ti
ti: vendor ## Run only integration tests
vendor/bin/phpunit --color --group Integration

.PHONY: tf
tf: vendor ## Run only functional tests
vendor/bin/phpunit --color --group Functional

.PHONY: st
st: vendor ## Run static analyse
vendor/bin/phpstan analyse


################################################

.PHONY: ci-mu
ci-mu: vendor ## Mutation tests (for CI/CD only)
vendor/bin/infection --logger-github -s --threads=$(nproc) --min-msi=23 --min-covered-msi=45

.PHONY: ci-cc
ci-cc: vendor ## Show test coverage rates (for CI/CD only)
vendor/bin/phpunit --coverage-text

.PHONY: ci-cs
ci-cs: vendor ## Check all files using defined ECS rules (for CI/CD only)
vendor/bin/ecs check

################################################


.PHONY: rector
rector: vendor ## Check all files using Rector
vendor/bin/rector process --ansi --dry-run --xdebug

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
"replace": {
"web-auth/webauthn-lib": "self.version",
"web-auth/metadata-service": "self.version",
"web-auth/webauthn-symfony-bundle": "self.version",
"web-auth/webauthn-stimulus": "self.version"
"web-auth/webauthn-symfony-bundle": "self.version"
},
"config": {
"sort-packages": true,
Expand Down

0 comments on commit 527211a

Please sign in to comment.