-
-
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 #9 from ishanvyas22/releases/1.0.3
Release version 1.0.3
- Loading branch information
Showing
21 changed files
with
9,912 additions
and
1,460 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,37 +7,77 @@ sudo: false | |
branches: | ||
only: | ||
- master | ||
- develop | ||
- releases/1.0.3 | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
|
||
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:[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"' | ||
|
||
services: | ||
- mysql | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
global: | ||
- DEFAULT=1 | ||
- PHPCS=0 | ||
- PHPSTAN=0 | ||
- CODECOVERAGE=0 | ||
|
||
include: | ||
- php: 7.1 | ||
- php: 7.2 | ||
env: PHPCS=1 DEFAULT=0 | ||
|
||
- php: 7.1 | ||
- 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_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('root') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root -proot | ||
- sudo service mysql restart | ||
|
||
before_script: | ||
- if [ $DB = 'mysql' ]; then mysql -u root -proot -e 'CREATE DATABASE cakevue_spa;'; fi | ||
- if [ $DB = 'mysql' ]; then mysql -u root -proot -e 'CREATE DATABASE test_cakevue_spa;'; fi | ||
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:^3.0; fi | ||
- if [[ $DEFAULT = 1 ]]; then composer install; fi | ||
- if [[ $DEFAULT = 1 ]]; then composer require phpunit/phpunit:"^5.7|^6.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 | ||
- if [[ $PHPSTAN = 1 ]]; then composer require --dev "phpstan/phpstan"; fi | ||
|
||
- 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 | ||
|
||
script: | ||
- if [[ $DEFAULT = 1 ]]; then vendor/bin/phpunit; fi | ||
- 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 ./webroot; fi | ||
- if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -l 5 src; 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 | ||
|
||
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
Oops, something went wrong.