summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-12-16 04:51:15 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2016-12-16 07:03:16 -0600
commite1a69393af42bbe9faf77e318e3cd6c84b264a1b (patch)
tree8fe921d7b51d023a1345136d410c0e6234e8c9c9 /ci
parent7f0d18180b027a268016ec1c34be61ed21a37d9a (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-xci/00-maasdeploy.sh4
-rwxr-xr-xci/01-bootstrap.sh2
-rwxr-xr-xci/clean.sh1
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