summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2017-07-04 14:31:38 -0700
committerMicah Anderson <micah@riseup.net>2017-07-04 15:20:45 -0700
commitff3878a70235206d182116c74c4ac7b3cc1a478f (patch)
tree56853b99a0121c548ba86275fde5411ef00f2def /tests
parentb9f562813b5005577bed3f2a40c5eb147696e18c (diff)
Fix non-existent CI variable CI_COMMIT_REF (#8844)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/platform-ci/ci-build.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/platform-ci/ci-build.sh b/tests/platform-ci/ci-build.sh
index 5c21bfb7..1445f562 100755
--- a/tests/platform-ci/ci-build.sh
+++ b/tests/platform-ci/ci-build.sh
@@ -149,7 +149,10 @@ upgrade_test() {
# due to cache, this remote is sometimes already added
git remote add leap https://leap.se/git/leap_platform || true
git fetch leap
+ echo "Checking out leap/stable"
git checkout -b leap_stable remotes/leap/stable || true
+ echo -n "Current version: "
+ git rev-parse HEAD
# After checking out a different platform branch
# bundle install is needed again
cd "$ROOTDIR"
@@ -163,7 +166,10 @@ upgrade_test() {
# Checkout HEAD of current branch and re-deploy
cd "$PLATFORMDIR"
- git checkout "$CI_COMMIT_REF"
+ echo "Checking out: $CI_COMMIT_SHA"
+ git checkout "$CI_COMMIT_SHA"
+ echo -n "Current version: "
+ git rev-parse HEAD
# After checking out a different platform branch
# bundle install is needed again
cd "$ROOTDIR"