-
Notifications
You must be signed in to change notification settings - Fork 16
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 EC-CUBE/refactor
リファクタリング
- Loading branch information
Showing
18 changed files
with
475 additions
and
123 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,66 @@ | ||
language: php | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- /home/travis/.composer/cache | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
# - 7.0 | ||
|
||
env: | ||
# plugin code | ||
global: | ||
PLUGIN_CODE=CategoryContent | ||
matrix: | ||
# # ec-cube master | ||
# - ECCUBE_VERSION=master DB=mysql USER=root DBNAME=myapp_test DBPASS=' ' DBUSER=root | ||
# - ECCUBE_VERSION=master DB=pgsql USER=postgres DBNAME=myapp_test DBPASS=password DBUSER=postgres | ||
- ECCUBE_VERSION=3.0.8 DB=mysql USER=root DBNAME=myapp_test DBPASS=' ' DBUSER=root | ||
- ECCUBE_VERSION=3.0.8 DB=pgsql USER=postgres DBNAME=myapp_test DBPASS=password DBUSER=postgres | ||
- ECCUBE_VERSION=3.0.9 DB=mysql USER=root DBNAME=myapp_test DBPASS=' ' DBUSER=root | ||
- ECCUBE_VERSION=3.0.9 DB=pgsql USER=postgres DBNAME=myapp_test DBPASS=password DBUSER=postgres | ||
- ECCUBE_VERSION=3.0.10 DB=mysql USER=root DBNAME=myapp_test DBPASS=' ' DBUSER=root | ||
- ECCUBE_VERSION=3.0.10 DB=pgsql USER=postgres DBNAME=myapp_test DBPASS=password DBUSER=postgres | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
before_script: | ||
# archive plugin | ||
- tar cvzf ${HOME}/${PLUGIN_CODE}.tar.gz ./* | ||
# clone ec-cube | ||
- git clone https://github.com/EC-CUBE/ec-cube.git | ||
- cd ec-cube | ||
# checkout version | ||
- sh -c "if [ ! '${ECCUBE_VERSION}' = 'master' ]; then git checkout -b ${ECCUBE_VERSION} refs/tags/${ECCUBE_VERSION}; fi" | ||
# update composer | ||
- composer selfupdate | ||
- composer global require hirak/prestissimo | ||
- composer install --dev --no-interaction -o | ||
# install ec-cube | ||
- sh eccube_install.sh ${DB} none | ||
# install plugin | ||
- php app/console plugin:develop install --path=${HOME}/${PLUGIN_CODE}.tar.gz | ||
# enable plugin | ||
- php app/console plugin:develop enable --code=${PLUGIN_CODE} | ||
|
||
script: | ||
# exec phpunit on ec-cube | ||
- phpunit app/Plugin/${PLUGIN_CODE}/Tests | ||
|
||
after_script: | ||
# disable plugin | ||
- php app/console plugin:develop disable --code=${PLUGIN_CODE} | ||
# uninstall plugin | ||
- php app/console plugin:develop uninstall --code=${PLUGIN_CODE} | ||
# re install plugin | ||
- php app/console plugin:develop install --code=${PLUGIN_CODE} | ||
# re enable plugin | ||
- php app/console plugin:develop enable --code=${PLUGIN_CODE} |
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
File renamed without changes.
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
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.