This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #8 from wavevision/feature/latest-dependencies
Feature/latest dependencies
- Loading branch information
Showing
38 changed files
with
1,533 additions
and
1,158 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 |
---|---|---|
|
@@ -15,7 +15,7 @@ before_script: | |
|
||
jobs: | ||
include: | ||
- script: composer phing ci | ||
- script: make ci | ||
|
||
cache: | ||
directories: | ||
|
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,64 @@ | ||
bin=vendor/bin | ||
chrome:=$(shell command -v google-chrome 2>/dev/null) | ||
codeSnifferRuleset=codesniffer-ruleset.xml | ||
coverage=$(temp)/coverage | ||
coverageClover=$(coverage)/coverage.xml | ||
php=php | ||
src=src | ||
temp=temp | ||
tests=tests | ||
dirs:=$(src) $(tests) | ||
|
||
all: | ||
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | ||
|
||
# Setup | ||
|
||
composer: | ||
composer install | ||
|
||
reset: | ||
rm -rf $(temp)/cache | ||
composer dumpautoload | ||
|
||
di: reset | ||
bin/extract-services | ||
|
||
fix: reset check-syntax phpcbf phpcs phpstan test | ||
|
||
# QA | ||
|
||
check-syntax: | ||
$(bin)/parallel-lint -e $(php) $(dirs) | ||
|
||
phpcs: | ||
$(bin)/phpcs -sp --standard=$(codeSnifferRuleset) --extensions=php $(dirs) | ||
|
||
phpcbf: | ||
$(bin)/phpcbf -spn --standard=$(codeSnifferRuleset) --extensions=php $(dirs) ; true | ||
|
||
phpstan: | ||
$(bin)/phpstan analyze $(dirs) --level max | ||
|
||
# Tests | ||
|
||
test: | ||
$(bin)/phpunit | ||
|
||
test-coverage: reset | ||
$(bin)/phpunit --coverage-html=$(coverage) | ||
|
||
test-coverage-clover: reset | ||
$(bin)/phpunit --coverage-clover=$(coverageClover) | ||
|
||
test-coverage-report: test-coverage-clover | ||
$(bin)/php-coveralls --coverage_clover=$(coverageClover) --verbose | ||
|
||
test-coverage-open: test-coverage | ||
ifndef chrome | ||
open -a 'Google Chrome' $(coverage)/index.html | ||
else | ||
google-chrome $(coverage)/index.html | ||
endif | ||
|
||
ci: check-syntax phpcs phpstan test-coverage-report |
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
Oops, something went wrong.