File tree Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 1- sudo : required
1+ os : linux
22dist : trusty
33group : edge
44addons :
@@ -11,23 +11,23 @@ addons:
1111 hosts :
1212 - magento2.travis
1313language : php
14- matrix :
14+ jobs :
1515 include :
16- - php : 7.2
16+ - php : 7.3
1717 env :
18- - MAGENTO_VERSION=2.3
19- - TEST_SUITE=integration
20- - php : 7.2
18+ - MAGENTO_VERSION=2.3
19+ - TEST_SUITE=integration
20+ - php : 7.3
2121 env :
22- - MAGENTO_VERSION=2.3 -develop
23- - TEST_SUITE=integration
24- - php : 7.1
22+ - MAGENTO_VERSION=2.4 -develop
23+ - TEST_SUITE=integration
24+ - php : 7.2
2525 env :
26- - MAGENTO_VERSION=2.3-develop
27- - TEST_SUITE=integration
28- - php : 7.1
26+ - MAGENTO_VERSION=2.3
27+ - TEST_SUITE=integration
28+ - php : 7.2
2929 env :
30- - MAGENTO_VERSION=2.2 -develop
30+ - MAGENTO_VERSION=2.4 -develop
3131 - TEST_SUITE=integration
3232 - php : 7.1
3333 env :
Original file line number Diff line number Diff line change @@ -24,8 +24,13 @@ cd magento2
2424# add composer package under test, composer require will trigger update/install
2525composer config minimum-stability dev
2626composer 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
2934
3035# prepare for test suite
3136case $TEST_SUITE in
You can’t perform that action at this time.
0 commit comments