We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363bac7 commit 2bdb21eCopy full SHA for 2bdb21e
.travis/before_script.sh
@@ -24,8 +24,13 @@ cd magento2
24
# add composer package under test, composer require will trigger update/install
25
composer config minimum-stability dev
26
composer config repositories.travis_to_test git https://github.com/$TRAVIS_REPO_SLUG.git
27
-#TODO make it work with tags as well:
28
-composer require ${COMPOSER_PACKAGE_NAME}:dev-${TRAVIS_BRANCH}\#{$TRAVIS_COMMIT}
+
+if [ ! -z $TRAVIS_TAG ]
29
+then
30
+ composer require ${COMPOSER_PACKAGE_NAME}:${TRAVIS_TAG}
31
+else
32
+ composer require ${COMPOSER_PACKAGE_NAME}:dev-${TRAVIS_BRANCH}\#${TRAVIS_COMMIT}
33
+fi
34
35
# prepare for test suite
36
case $TEST_SUITE in
0 commit comments