You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-18 09:22:18 +03:00
Use develop js-sdk in travis build
This commit is contained in:
@ -5,8 +5,16 @@ set -e
|
||||
org="$1"
|
||||
repo="$2"
|
||||
|
||||
curbranch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
|
||||
echo "Determined branch to be $curbranch"
|
||||
curbranch="$TRAVIS_PULL_REQUEST_BRANCH"
|
||||
[ -z "$curbranch" ] && curbranch="$TRAVIS_BRANCH"
|
||||
[ -z "$curbranch" ] && curbranch="$GIT_BRANCH" # jenkins
|
||||
|
||||
git clone https://github.com/$org/$repo.git $repo --branch "$curbranch" || git clone https://github.com/$org/$repo.git $repo --branch develop
|
||||
if [ -n "$curbranch" ]
|
||||
then
|
||||
echo "Determined branch to be $curbranch"
|
||||
|
||||
git clone https://github.com/$org/$repo.git $repo --branch "$curbranch" && exit 0
|
||||
fi
|
||||
|
||||
echo "Checking out develop branch"
|
||||
git clone https://github.com/$org/$repo.git $repo --branch develop
|
||||
|
Reference in New Issue
Block a user