-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add condition to allow configurator releases to be required via composer
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 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 |
---|---|---|
|
@@ -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 | ||
|
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