Skip to content

Commit

Permalink
Add condition to allow configurator releases to be required via composer
Browse files Browse the repository at this point in the history
  • Loading branch information
chevli committed Jul 20, 2017
1 parent 25a44a4 commit c16d4eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Test/Integration/setup-magento.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ cd magento2

git checkout tags/$1 -b $1

composer require ctidigital/magento2-configurator dev-${TRAVIS_BRANCH}\#${TRAVIS_COMMIT}
if [ -z "${TRAVIS_TAG}" ]; then
echo Require configurator branch: ${TRAVIS_BRANCH} commit: ${TRAVIS_COMMIT}
composer require ctidigital/magento2-configurator dev-${TRAVIS_BRANCH}\#${TRAVIS_COMMIT}
else
echo Require configurator release ${TRAVIS_TAG}
composer require ctidigital/magento2-configurator ${TRAVIS_TAG}
fi

composer install

php bin/magento setup:install --admin-email "[email protected]" --admin-firstname "CTI" --admin-lastname "Test" --admin-password "password123" --admin-user "admin" --backend-frontname admin --base-url "http://configurator.dev" --db-host 127.0.0.1 --db-name configurator --db-user root --session-save files --use-rewrites 1 --use-secure 0 -vvv
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"satooshi/php-coveralls": "^1.0",
"phpunit/phpunit": "4.1.0"
},
"version": "0.19.0-dev",
"version": "0.19.1-dev",
"autoload": {
"files": [ "registration.php" ],
"psr-4": {
Expand Down

0 comments on commit c16d4eb

Please sign in to comment.