[CI] split molecule testes to run in parallel (#8756)

* add parametrization to molecule_run.sh

* [CI] split molecule tests to allow parallelization of work
This commit is contained in:
Cristian Calin
2022-04-29 10:09:12 +03:00
committed by GitHub
parent b7004d72c5
commit 835fd86a08
4 changed files with 118 additions and 25 deletions

View File

@@ -1,28 +1,5 @@
---
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 ansible-base ansible-core
- python -m pip install -r tests/requirements.txt
- ./tests/scripts/vagrant_clean.sh
script:
- ./tests/scripts/molecule_run.sh
after_script:
- chronic ./tests/scripts/molecule_logs.sh
artifacts:
when: always
paths:
- molecule_logs/
.vagrant:
extends: .testcases
variables: