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 b472229 commit d221af5Copy full SHA for d221af5
.travis/before_script.sh
@@ -28,6 +28,11 @@ composer config repositories.travis_to_test git https://github.com/$TRAVIS_REPO_
28
if [ ! -z $TRAVIS_TAG ]
29
then
30
composer require ${COMPOSER_PACKAGE_NAME}:${TRAVIS_TAG}
31
+elif [ ! -z $TRAVIS_PULL_REQUEST_BRANCH ]
32
+then
33
+ # For pull requests, use the remote repository
34
+ composer config repositories.travis_to_test git https://github.com/${TRAVIS_PULL_REQUEST_SLUG}.git
35
+ composer require ${COMPOSER_PACKAGE_NAME}:dev-${TRAVIS_PULL_REQUEST_BRANCH}\#${TRAVIS_PULL_REQUEST_SHA}
36
else
37
composer require ${COMPOSER_PACKAGE_NAME}:dev-${TRAVIS_BRANCH}\#${TRAVIS_COMMIT}
38
fi
0 commit comments