-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from lcobucci/improve-ci-and-tooling
Improve CI and tooling
- Loading branch information
Showing
5 changed files
with
58 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
/templates export-ignore | ||
/tests export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.travis.yml export-ignore | ||
/infection.json.dist export-ignore | ||
/phpcs.xml.dist export-ignore | ||
/phpstan.neon.dist export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/README.md export-ignore | ||
/.github export-ignore | ||
/templates export-ignore | ||
/tests export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.*.yml export-ignore | ||
/*.dist export-ignore | ||
/Makefile export-ignore | ||
/README.md export-ignore |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/vendor/ | ||
/composer.lock | ||
/.phpcs.cache | ||
/infection-log.txt | ||
/infection.log | ||
/.phpunit.result.cache |
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 @@ | ||
MIN_MSI=100 | ||
MIN_COVERED_MSI=100 | ||
|
||
ifeq ("${CI}", "true") | ||
PARALLELISM=4 | ||
else | ||
PARALLELISM=$(shell nproc) | ||
endif | ||
|
||
.PHONY: valid test coding-standard-fix coding-standard static-analysis unit-test mutation-test | ||
|
||
valid: coding-standard-fix coding-standard static-analysis test | ||
|
||
test: unit-test mutation-test | ||
|
||
vendor: composer.json | ||
composer install $(EXTRA_FLAGS) | ||
@touch -c vendor | ||
|
||
coding-standard: vendor | ||
vendor/bin/phpcs --parallel=$(PARALLELISM) | ||
|
||
coding-standard-fix: vendor | ||
vendor/bin/phpcbf --parallel=$(PARALLELISM) || true | ||
|
||
static-analysis: vendor | ||
vendor/bin/phpstan analyse $(EXTRA_FLAGS) | ||
|
||
unit-test: vendor | ||
vendor/bin/phpunit --testsuite unit --stop-on-error --stop-on-failure $(EXTRA_FLAGS) | ||
|
||
mutation-test: vendor | ||
vendor/bin/infection --no-progress -j=$(PARALLELISM) -s --min-msi=$(MIN_MSI) --min-covered-msi=$(MIN_COVERED_MSI) $(EXTRA_FLAGS) |
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 |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
"directories": ["src"] | ||
}, | ||
"logs": { | ||
"text": "infection-log.txt" | ||
"text": "infection.log" | ||
} | ||
} |