-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 #18 from ishanvyas22/upgrade-app-to-cake4
Upgrade app to CakePHP 4
- Loading branch information
Showing
60 changed files
with
12,531 additions
and
10,633 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
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,21 +1,17 @@ | ||
language: php | ||
|
||
dist: trusty | ||
|
||
branches: | ||
only: | ||
- master | ||
- develop | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
|
||
env: | ||
matrix: | ||
- DB=mysql DATABASE_URL='mysql://root:[email protected]/cakevue_spa?init[]=SET sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"' DATABASE_TEST_URL='mysql://root:root@127.0.0.1/test_cakevue_spa?init[]=SET sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"' | ||
- DEFAULT=1 DATABASE_TEST_URL='mysql://ishan:vyas@127.0.0.1/test_cakevue_spa' | ||
|
||
services: | ||
- mysql | ||
|
@@ -28,48 +24,23 @@ cache: | |
matrix: | ||
fast_finish: true | ||
|
||
global: | ||
- DEFAULT=1 | ||
- PHPCS=0 | ||
- PHPSTAN=0 | ||
- CODECOVERAGE=0 | ||
|
||
include: | ||
- php: 7.2 | ||
env: PHPCS=1 DEFAULT=0 | ||
|
||
- php: 7.2 | ||
env: PHPSTAN=1 DEFAULT=0 | ||
|
||
- php: 7.2 | ||
env: CODECOVERAGE=1 DEFAULT=0 DB=mysql DATABASE_URL='mysql://root:[email protected]/cakevue_spa?init[]=SET sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"' DATABASE_TEST_URL='mysql://root:[email protected]/test_cakevue_spa?init[]=SET sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"' | ||
|
||
before_script: | ||
- if [ $DB = 'mysql' ]; then mysql -u root -e 'CREATE DATABASE cakevue_spa;'; fi | ||
- if [ $DB = 'mysql' ]; then mysql -u root -e 'CREATE DATABASE test_cakevue_spa;'; fi | ||
- if [ $DB = 'mysql' ]; then mysql -u root -e "CREATE USER 'ishan'@'localhost' IDENTIFIED BY 'ishan';"; fi | ||
- if [ $DB = 'mysql' ]; then mysql -u root -e "GRANT ALL ON cakevue_spa.* TO 'ishan'@'localhost';"; fi | ||
- if [ $DB = 'mysql' ]; then mysql -u root -e "GRANT ALL ON test_cakevue_spa.* TO 'ishan'@'localhost';"; fi | ||
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:^3.0; fi | ||
- if [[ $DEFAULT = 1 ]]; then composer install --no-interaction; fi | ||
- if [[ $DEFAULT = 1 ]]; then composer test-setup; fi | ||
- if [[ $DEFAULT = 1 ]]; then composer run-script post-install-cmd --no-interaction; fi | ||
before_install: | ||
- phpenv config-rm xdebug.ini | ||
|
||
- if [[ $CODECOVERAGE = 1 ]]; then composer install --no-interaction; fi | ||
- if [[ $CODECOVERAGE = 1 ]]; then composer run-script post-install-cmd --no-interaction; fi | ||
- if [[ $CODECOVERAGE = 1 ]]; then composer test-setup; fi | ||
install: | ||
- mysql -u root -e "CREATE DATABASE test_cakevue_spa; CREATE USER 'ishan'@'localhost' IDENTIFIED BY 'vyas'; GRANT ALL ON test_cakevue_spa.* TO 'ishan'@'localhost';" | ||
- composer install --no-interaction | ||
|
||
script: | ||
- if [[ $DEFAULT = 1 ]]; then composer test; fi | ||
|
||
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi | ||
|
||
- if [[ $PHPSTAN = 1 ]]; then composer phpstan-setup && composer phpstan; fi | ||
|
||
- if [[ $CODECOVERAGE == 1 ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=clover.xml; fi | ||
|
||
after_success: | ||
- if [[ $CODECOVERAGE == 1 ]]; then bash <(curl -s https://codecov.io/bash); fi | ||
- if [[ $PHPCS = 1 ]]; then composer cs-check; fi | ||
- if [[ $PHPSTAN = 1 ]]; then composer analyse; fi | ||
|
||
notifications: | ||
email: false |
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,9 @@ | ||
# Release Notes | ||
|
||
## [Unreleased](https://github.com/ishanvyas22/cakephpvue-spa/compare/1.1.2...master) | ||
|
||
### Added | ||
- Upgrade application to CakePHP 4.x | ||
|
||
### Fixed | ||
- Rename `CHANGLOG.md` to `CHANGELOG.md` ([2eb3eae](https://github.com/ishanvyas22/cakephpvue-spa/commit/2eb3eae7292cc8a083ba90245dff7ffbaca4cca1)) |
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
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.