-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove coke, use cs-fixer and add a makefile (#65)
* chore: remove coke, use cs-fixer and add a makefile * Apply suggestions from code review Co-Authored-By: Oliver THEBAULT <[email protected]> * chore: pr feedbacks * chore: update travis build * chore: fix composer.json after rebase * chore: use PHP71 config to be compatible with CI * chore: remove sf-security-checker in make ci * chore: remove test-dependecies target all together * chore: remove unused code in makefile & travis config
- Loading branch information
Showing
26 changed files
with
182 additions
and
210 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## Why? | ||
<!-- Explain why you've done it like this --> | ||
|
||
## How? | ||
<!-- Explain how you've done it --> | ||
|
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,11 @@ | ||
<?php | ||
$config = new M6Web\CS\Config\Php71(); | ||
$config | ||
->getFinder() | ||
->in( | ||
[ | ||
__DIR__.'/src', | ||
] | ||
); | ||
|
||
return $config; |
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,62 @@ | ||
SHELL=bash | ||
SOURCE_DIR = $(shell pwd) | ||
BIN_DIR = ${SOURCE_DIR}/bin | ||
COMPOSER = composer | ||
|
||
define printSection | ||
@printf "\033[36m\n==================================================\n\033[0m" | ||
@printf "\033[36m $1 \033[0m" | ||
@printf "\033[36m\n==================================================\n\033[0m" | ||
endef | ||
|
||
.PHONY: all | ||
all: install quality test test-dependencies | ||
|
||
.PHONY: ci | ||
ci: quality test | ||
|
||
.PHONY: install | ||
install: clean-vendor composer-install | ||
|
||
.PHONY: quality | ||
quality: cs-ci | ||
|
||
.PHONY: test | ||
test: atoum | ||
|
||
# Coding Style | ||
|
||
.PHONY: cs | ||
cs: | ||
${BIN_DIR}/php-cs-fixer fix --dry-run --stop-on-violation --diff | ||
|
||
.PHONY: cs-fix | ||
cs-fix: | ||
${BIN_DIR}/php-cs-fixer fix | ||
|
||
.PHONY: cs-ci | ||
cs-ci: | ||
${BIN_DIR}/php-cs-fixer fix --ansi --dry-run --using-cache=no --verbose | ||
|
||
#COMPOSER | ||
|
||
.PHONY: clean-vendor | ||
clean-vendor: | ||
$(call printSection,CLEAN-VENDOR) | ||
rm -rf ${SOURCE_DIR}/vendor | ||
|
||
.PHONY: composer-install | ||
composer-install: ${SOURCE_DIR}/vendor/composer/installed.json | ||
|
||
${SOURCE_DIR}/vendor/composer/installed.json: | ||
$(call printSection,COMPOSER INSTALL) | ||
$(COMPOSER) --no-interaction install --ansi --no-progress --prefer-dist | ||
|
||
# CI TOOLS | ||
|
||
# TEST | ||
.PHONY: atoum | ||
atoum: | ||
$(call printSection,TEST atoum) | ||
${BIN_DIR}/atoum | ||
|
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
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
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.