1
# Collect, pre-deploy (lint, etc.) deploy and check the initial charm
2
# We need to clean the build directory first in case a previous build
3
# was using a version that is different from the upstream (e.g. git vs. charmstore)
4
script config=clean-build-dir
7
script config=pre-deploy PHASE=initial
8
deploy config=deploy wait=true
9
nagios-check skip-checks='check_swap,check_etc_bzr,check_log_archive_status,check_ksplice,check_haproxy' retry=3 sleep=60
10
verify config=post-deploy retry=3 sleep=60 PHASE=initial
11
# Now test an upgrade to the new charm if UPGRADE_CHARM is set
12
stop-on return-code=99 config=check-upgrade-charm UPGRADE_CHARM=${UPGRADE_CHARM}
13
script config=create-upgrade-collect UPGRADE_CHARM=${UPGRADE_CHARM}
14
collect config=collect-upgrade
15
script config=upgrade-charm
17
nagios-check skip-checks='check_swap,check_etc_bzr,check_log_archive_status,check_ksplice,check_haproxy' retry=3 sleep=60
18
verify config=post-deploy retry=3 sleep=60 PHASE=upgrade
19
# Now redeploy the model, and test a deployment from scratch (with the updated charm in place)
20
script config=redeploy-model
21
script config=pre-deploy PHASE=redeploy
22
deploy config=deploy wait=true
23
nagios-check skip-checks='check_swap,check_etc_bzr,check_log_archive_status,check_ksplice,check_haproxy' retry=3 sleep=60
24
verify config=post-deploy retry=3 sleep=60 PHASE=redeploy