-
Notifications
You must be signed in to change notification settings - Fork 0
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 #13 from ensi-platform/ensitech-74
ENSITECH-74
- Loading branch information
Showing
37 changed files
with
945 additions
and
640 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 @@ | ||
../scripts/install-dependencies.sh |
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 @@ | ||
../scripts/install-dependencies.sh |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
../scripts/lint-php.sh |
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 @@ | ||
../scripts/php-cs-fixer.sh |
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 @@ | ||
../scripts/composer-validate.sh |
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 @@ | ||
../scripts/phpstan.sh |
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 @@ | ||
../scripts/test-code.sh |
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
.git_hooks/pre-push/composer-validate.sh → .git_hooks/scripts/composer-validate.sh
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
2 changes: 2 additions & 0 deletions
2
.git_hooks/pre-commit/php-cs-fixer.sh → .git_hooks/scripts/php-cs-fixer.sh
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,20 @@ | ||
#!/bin/bash | ||
|
||
# Run composer phpstan | ||
|
||
ESC_SEQ="\x1b[" | ||
COL_RESET=$ESC_SEQ"39;49;00m" | ||
COL_RED=$ESC_SEQ"0;31m" | ||
COL_GREEN=$ESC_SEQ"0;32m" | ||
COL_YELLOW=$ESC_SEQ"0;33m" | ||
|
||
echo | ||
printf "$COL_YELLOW%s$COL_RESET\n" "Running pre-push hook: \"phpstan\"" | ||
|
||
if composer phpstan; then | ||
echo "Okay" | ||
exit 0 | ||
else | ||
printf "$COL_RED%s$COL_RESET\r\n" "phpstan analysis failed." | ||
exit 1 | ||
fi |
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,20 @@ | ||
#!/bin/bash | ||
|
||
# Run composer test | ||
|
||
ESC_SEQ="\x1b[" | ||
COL_RESET=$ESC_SEQ"39;49;00m" | ||
COL_RED=$ESC_SEQ"0;31m" | ||
COL_GREEN=$ESC_SEQ"0;32m" | ||
COL_YELLOW=$ESC_SEQ"0;33m" | ||
|
||
echo | ||
printf "$COL_YELLOW%s$COL_RESET\n" "Running pre-push hook: \"test-code\"" | ||
|
||
if composer test; then | ||
echo "Okay" | ||
exit 0 | ||
else | ||
printf "$COL_RED%s$COL_RESET\r\n" "Tests failed." | ||
exit 1 | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,85 @@ | ||
.idea | ||
vendor | ||
composer.lock | ||
studio.json | ||
.phpunit.* | ||
# Project # | ||
######################## | ||
.php_cs.cache | ||
.php-cs-fixer.cache | ||
.huskyrc | ||
clients/* | ||
!clients/.gitkeep | ||
storage/ensi | ||
generated | ||
studio.json | ||
build | ||
/node_modules | ||
/vendor | ||
.phpunit.result.cache | ||
composer.lock | ||
composer.local.json | ||
Homestead.json | ||
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# IDEs # | ||
################### | ||
*.sublime-project | ||
*.sublime-workspace | ||
/.idea | ||
/.vscode | ||
*.komodoproject | ||
.vscode | ||
|
||
# Static content # | ||
################### | ||
*.csv | ||
*.doc | ||
*.docx | ||
*.xls | ||
*.xlsx | ||
*.xml | ||
!phpunit.xml | ||
!psalm.xml | ||
*.yml | ||
*.txt | ||
*.wav | ||
*.mp3 | ||
*.avi | ||
|
||
# Compiled source # | ||
################### | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
*.so | ||
*.box | ||
|
||
# Packages # | ||
############ | ||
# it's better to unpack these files and commit the raw source | ||
# git has its own built in compression methods | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.tgz | ||
*.iso | ||
*.jar | ||
*.rar | ||
*.tar | ||
*.zip | ||
*.phar | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store | ||
.DS_Store? | ||
.nfs* | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
.vagrant | ||
ehthumbs.db | ||
Thumbs.db | ||
sftp-config.json | ||
auth.json |
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.