2020-04-01 14:25:28 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
molecule_tests:
|
|
|
|
tags: [vagrant]
|
|
|
|
only: [/^pr-.*$/]
|
|
|
|
except: ['triggers']
|
2020-04-18 20:53:36 +00:00
|
|
|
image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
|
2020-04-01 14:25:28 +00:00
|
|
|
services: []
|
|
|
|
stage: deploy-part1
|
|
|
|
before_script:
|
|
|
|
- tests/scripts/rebase.sh
|
|
|
|
- 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
|
2020-04-24 08:30:07 +00:00
|
|
|
- ./tests/scripts/vagrant_clean.sh
|
2020-04-01 14:25:28 +00:00
|
|
|
script:
|
|
|
|
- ./tests/scripts/molecule_run.sh
|
2020-04-18 13:09:35 +00:00
|
|
|
|
|
|
|
.vagrant:
|
|
|
|
extends: .testcases
|
|
|
|
variables:
|
|
|
|
CI_PLATFORM: "vagrant"
|
|
|
|
SSH_USER: "kubespray"
|
|
|
|
VAGRANT_DEFAULT_PROVIDER: "libvirt"
|
|
|
|
tags: [vagrant]
|
|
|
|
only: [/^pr-.*$/]
|
|
|
|
except: ['triggers']
|
2020-04-18 20:53:36 +00:00
|
|
|
image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
|
2020-04-18 13:09:35 +00:00
|
|
|
services: []
|
2020-04-24 08:30:07 +00:00
|
|
|
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
|
2020-04-18 13:09:35 +00:00
|
|
|
script:
|
|
|
|
- vagrant up
|
|
|
|
after_script:
|
|
|
|
- vagrant destroy --force
|
|
|
|
|
|
|
|
vagrant_ubuntu18-flannel:
|
|
|
|
stage: deploy-part2
|
|
|
|
extends: .vagrant
|
|
|
|
when: on_success
|