summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-11-16 18:41:58 +0100
committerVarac <varac@leap.se>2017-11-16 22:02:06 +0100
commit464da0db5abe5008b281412548d4f85e1710ba43 (patch)
treecca1fac7225f8898dd675077b30c48c9f59b566d
parent1653a99d5f70a68f59fea2c1d2eea40447e8a466 (diff)
CI: Run leap info,allow pre-migration test to fail
-rwxr-xr-xtests/platform-ci/ci-build.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/platform-ci/ci-build.sh b/tests/platform-ci/ci-build.sh
index 909ed1b1..b2958f7c 100755
--- a/tests/platform-ci/ci-build.sh
+++ b/tests/platform-ci/ci-build.sh
@@ -66,6 +66,11 @@ deploy() {
LEAP_CMD deploy "$TAG"
}
+leap_info() {
+ echo "Running leap info on $TAG"
+ LEAP_CMD info "${TAG}"
+}
+
test() {
LEAP_CMD test "$TAG"
}
@@ -149,8 +154,6 @@ build_from_scratch() {
echo "Running leap node init on TAG: $TAG"
LEAP_CMD node init "$TAG"
- echo "Running leap info on $TAG"
- LEAP_CMD info "${TAG}"
}
run() {
@@ -235,6 +238,7 @@ upgrade_test() {
LEAP_CMD --version
build_from_scratch 'couchdb,soledad,mx,webapp,tor,monitor'
deploy
+ leap_info
test
# Checkout HEAD of current branch and re-deploy
@@ -250,7 +254,7 @@ upgrade_test() {
cd "$PROVIDERDIR"
LEAP_CMD --version
-
+
# due to the 'tor' service no longer being valid in 0.10, we need to change
# that service to 'tor_relay'. This is done by changing the services array
# with jq to be set to the full correct list of services
@@ -258,11 +262,14 @@ upgrade_test() {
deploy
# pre-migration test
- test
+ # allowed to fail because when a migration is needed, soledad-server refuses to start
+ test || /bin/true
# check for soledad migration, and run it if necessary
soledad_migration
+ leap_info
+
# run the test again, this should succeed
test
@@ -305,6 +312,7 @@ case "$CI_JOB_NAME" in
deploy_test*)
build_from_scratch
deploy
+ leap_info
test
cleanup
;;