2020-04-01 22:25:28 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
molecule_tests:
|
2020-04-29 22:14:24 +08:00
|
|
|
tags: [c3.small.x86]
|
2020-04-01 22:25:28 +08:00
|
|
|
only: [/^pr-.*$/]
|
|
|
|
except: ['triggers']
|
2020-04-19 04:53:36 +08:00
|
|
|
image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
|
2020-04-01 22:25:28 +08: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 16:30:07 +08:00
|
|
|
- ./tests/scripts/vagrant_clean.sh
|
2020-04-01 22:25:28 +08:00
|
|
|
script:
|
|
|
|
- ./tests/scripts/molecule_run.sh
|
2020-04-18 21:09:35 +08:00
|
|
|
|
|
|
|
.vagrant:
|
|
|
|
extends: .testcases
|
|
|
|
variables:
|
|
|
|
CI_PLATFORM: "vagrant"
|
2020-05-28 15:46:02 +08:00
|
|
|
SSH_USER: "vagrant"
|
2020-04-18 21:09:35 +08:00
|
|
|
VAGRANT_DEFAULT_PROVIDER: "libvirt"
|
2020-04-29 22:14:24 +08:00
|
|
|
KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb
|
|
|
|
tags: [c3.small.x86]
|
2020-04-18 21:09:35 +08:00
|
|
|
only: [/^pr-.*$/]
|
|
|
|
except: ['triggers']
|
2020-04-19 04:53:36 +08:00
|
|
|
image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
|
2020-04-18 21:09:35 +08:00
|
|
|
services: []
|
2020-04-24 16:30:07 +08: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 21:09:35 +08:00
|
|
|
script:
|
2020-05-28 15:46:02 +08:00
|
|
|
- ./tests/scripts/testcases_run.sh
|
2020-04-18 21:09:35 +08:00
|
|
|
after_script:
|
2020-05-28 15:46:02 +08:00
|
|
|
- chronic ./tests/scripts/testcases_cleanup.sh
|
2020-04-18 21:09:35 +08:00
|
|
|
|
|
|
|
vagrant_ubuntu18-flannel:
|
|
|
|
stage: deploy-part2
|
|
|
|
extends: .vagrant
|
2020-04-29 22:14:24 +08:00
|
|
|
when: on_success
|
|
|
|
|
|
|
|
vagrant_ubuntu18-weave-medium:
|
|
|
|
stage: deploy-part2
|
|
|
|
extends: .vagrant
|
2020-05-28 15:46:02 +08:00
|
|
|
when: manual
|