LEAP_CMD deploy "$TAG"
}
+leap_info() {
+ echo "Running leap info on $TAG"
+ LEAP_CMD info "${TAG}"
+}
+
test() {
LEAP_CMD test "$TAG"
}
echo "Running leap node init on TAG: $TAG"
LEAP_CMD node init "$TAG"
- echo "Running leap info on $TAG"
- LEAP_CMD info "${TAG}"
}
run() {
LEAP_CMD --version
build_from_scratch 'couchdb,soledad,mx,webapp,tor,monitor'
deploy
+ leap_info
test
# Checkout HEAD of current branch and re-deploy
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
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
deploy_test*)
build_from_scratch
deploy
+ leap_info
test
cleanup
;;