diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-12-16 04:51:15 -0600 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2016-12-16 07:03:16 -0600 |
commit | e1a69393af42bbe9faf77e318e3cd6c84b264a1b (patch) | |
tree | 8fe921d7b51d023a1345136d410c0e6234e8c9c9 /ci | |
parent | 7f0d18180b027a268016ec1c34be61ed21a37d9a (diff) |
modified to sleep for 30 second after destroy the environment.
Change-Id: Idff7db35a47a5673c54fd03ecc1a621210179d37
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/00-maasdeploy.sh | 4 | ||||
-rwxr-xr-x | ci/01-bootstrap.sh | 2 | ||||
-rwxr-xr-x | ci/clean.sh | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/ci/00-maasdeploy.sh b/ci/00-maasdeploy.sh index 527134d0..556b65ab 100755 --- a/ci/00-maasdeploy.sh +++ b/ci/00-maasdeploy.sh @@ -18,6 +18,10 @@ sudo apt-get install openssh-server bzr git maas-deployer juju juju-deployer \ maas-cli python-pip python-psutil python-openstackclient \ python-congressclient gsutil charm-tools pastebinit -y +sudo apt-get purge juju -y +wget https://launchpad.net/~juju/+archive/ubuntu/stable/+files/juju-core_1.25.5-0ubuntu1~14.04.2~juju1_amd64.deb +sudo dpkg -i juju-core_1.25.5-0ubuntu1~14.04.2~juju1_amd64.deb + #first parameter should be custom and second should be either # absolute location of file (including file name) or url of the # file to download. diff --git a/ci/01-bootstrap.sh b/ci/01-bootstrap.sh index 4d265f32..b02b83d3 100755 --- a/ci/01-bootstrap.sh +++ b/ci/01-bootstrap.sh @@ -7,7 +7,7 @@ set -ex jujuver=`juju --version` if [[ "$jujuver" < "2" ]]; then - juju bootstrap --debug --to bootstrap.maas --agent-version 1.25.6 + juju bootstrap --debug --to bootstrap.maas --agent-version 1.25.5 sleep 5 #disable juju gui until xenial charms are in charm store. juju deploy cs:juju-gui-130 --to 0 diff --git a/ci/clean.sh b/ci/clean.sh index 9324a91d..079828a0 100755 --- a/ci/clean.sh +++ b/ci/clean.sh @@ -21,6 +21,7 @@ if [[ "$jujuver" > "2" ]]; then rm -rf precise rm -rf trusty rm -rf xenial + sleep 30 sudo sysctl -w vm.drop_caches=3 elif [ -d $HOME/.juju/environments ]; then echo " " > status.txt |