Skip to content
Snippets Groups Projects
Unverified Commit 6674be25 authored by Maxime Guyot's avatar Maxime Guyot Committed by GitHub
Browse files

Cleanup Vagrant VMs before molecule and vagrant CI (#6009)

parent cf1566e8
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment