Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ setup:
- mkdir -p ${WRK_DIR}
- cd ${WRK_DIR}
# setup chipStar
- BRANCH=${GITHUB_REF:-${CI_COMMIT_BRANCH}}
- SHA=${GITHUB_SHA:-${CI_COMMIT_SHA}}
- echo "Branch ${BRANCH} and commit ${SHA}"
- git clone --single-branch --branch ${BRANCH} https://github.com/CHIP-SPV/chipStar.git
- git clone https://github.com/CHIP-SPV/chipStar.git
- |
if [ -n "${GITHUB_PR_NUMBER}" ]; then
git fetch origin pull/${GITHUB_PR_NUMBER}/head
git checkout FETCH_HEAD
else
git checkout ${GITHUB_SHA}
fi
- cd chipStar
- git checkout ${SHA}
- git submodule update --init --recursive
Expand Down
Loading