Skip to content
Snippets Groups Projects
Verified Commit 464da0db authored by Varac's avatar Varac
Browse files

CI: Run leap info,allow pre-migration test to fail

parent 1653a99d
Branches improve_debug_info
Tags
No related merge requests found
Pipeline #
......@@ -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
......@@ -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
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment