File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,13 @@ cd magento2
24
24
# add composer package under test, composer require will trigger update/install
25
25
composer config minimum-stability dev
26
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 }
27
+
28
+ 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
29
34
30
35
# prepare for test suite
31
36
case $TEST_SUITE in
@@ -47,4 +52,4 @@ case $TEST_SUITE in
47
52
unit)
48
53
cp vendor/$COMPOSER_PACKAGE_NAME /tests/Unit/phpunit.xml.dist dev/tests/unit/phpunit.xml
49
54
;;
50
- esac
55
+ esac
You can’t perform that action at this time.
0 commit comments