7516fe142f
* Ansible: move to Ansible 3.4.0 which uses ansible-base 2.10.10 * Docs: add a note about ansible upgrade post 2.9.x * CI: ensure ansible is removed before ansible 3.x is installed to avoid pip failures * Ansible: use newer ansible-lint * Fix ansible-lint 5.0.11 found issues * syntax issues * risky-file-permissions * var-naming * role-name * molecule tests * Mitogen: use 0.3.0rc1 which adds support for ansible 2.10+ * Pin ansible-base to 2.10.11 to get package fix on RHEL8
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
---
|
|
|
|
molecule_tests:
|
|
tags: [c3.small.x86]
|
|
only: [/^pr-.*$/]
|
|
except: ['triggers']
|
|
image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
|
|
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 uninstall -y ansible
|
|
- python -m pip install -r tests/requirements.txt
|
|
- ./tests/scripts/vagrant_clean.sh
|
|
script:
|
|
- ./tests/scripts/molecule_run.sh
|
|
|
|
.vagrant:
|
|
extends: .testcases
|
|
variables:
|
|
CI_PLATFORM: "vagrant"
|
|
SSH_USER: "vagrant"
|
|
VAGRANT_DEFAULT_PROVIDER: "libvirt"
|
|
KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb
|
|
tags: [c3.small.x86]
|
|
only: [/^pr-.*$/]
|
|
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 uninstall -y ansible
|
|
- python -m pip install -r tests/requirements.txt
|
|
- ./tests/scripts/vagrant_clean.sh
|
|
script:
|
|
- ./tests/scripts/testcases_run.sh
|
|
after_script:
|
|
- chronic ./tests/scripts/testcases_cleanup.sh
|
|
|
|
vagrant_ubuntu18-calico-dual-stack:
|
|
stage: deploy-part2
|
|
extends: .vagrant
|
|
when: on_success
|
|
|
|
vagrant_ubuntu18-flannel:
|
|
stage: deploy-part2
|
|
extends: .vagrant
|
|
when: on_success
|
|
|
|
vagrant_ubuntu18-weave-medium:
|
|
stage: deploy-part2
|
|
extends: .vagrant
|
|
when: manual
|
|
|
|
vagrant_ubuntu20-flannel:
|
|
stage: deploy-part2
|
|
extends: .vagrant
|
|
when: on_success
|