Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
6674be25
Unverified
Commit
6674be25
authored
4 years ago
by
Maxime Guyot
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup Vagrant VMs before molecule and vagrant CI (#6009)
parent
cf1566e8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci/vagrant.yml
+6
-0
6 additions, 0 deletions
.gitlab-ci/vagrant.yml
tests/scripts/vagrant_clean.sh
+10
-0
10 additions, 0 deletions
tests/scripts/vagrant_clean.sh
with
16 additions
and
0 deletions
.gitlab-ci/vagrant.yml
+
6
−
0
View file @
6674be25
...
...
@@ -12,6 +12,7 @@ molecule_tests:
-
apt-get update && apt-get install -y python3-pip
-
update-alternatives --install /usr/bin/python python /usr/bin/python3
10
-
python -m pip install -r tests/requirements.txt
-
./tests/scripts/vagrant_clean.sh
script
:
-
./tests/scripts/molecule_run.sh
...
...
@@ -26,6 +27,11 @@ molecule_tests:
except
:
[
'
triggers'
]
image
:
quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
services
:
[]
before_script
:
-
apt-get update && apt-get install -y python3-pip
-
update-alternatives --install /usr/bin/python python /usr/bin/python3
10
-
python -m pip install -r tests/requirements.txt
-
./tests/scripts/vagrant_clean.sh
script
:
-
vagrant up
after_script
:
...
...
This diff is collapsed.
Click to expand it.
tests/scripts/vagrant_clean.sh
0 → 100755
+
10
−
0
View file @
6674be25
#!/bin/bash
set
-euxo
pipefail
# Cleanup vagrant VMs to avoid name conflicts
for
i
in
$(
virsh list
--name
)
do
virsh destroy
"
$i
"
virsh undefine
"
$i
"
done
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment