mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
CI: convert molecule jobs to kubevirt
This commit is contained in:
@@ -1,29 +1,15 @@
|
|||||||
---
|
---
|
||||||
.molecule:
|
.molecule:
|
||||||
tags: [ffci-vm-med]
|
tags: [ffci]
|
||||||
only: [/^pr-.*$/]
|
only: [/^pr-.*$/]
|
||||||
except: ['triggers']
|
except: ['triggers']
|
||||||
image: quay.io/kubespray/vm-kubespray-ci:v13
|
|
||||||
services: []
|
|
||||||
stage: deploy-part1
|
stage: deploy-part1
|
||||||
needs: []
|
image: $PIPELINE_IMAGE
|
||||||
|
needs:
|
||||||
|
- pipeline-image
|
||||||
# - ci-not-authorized
|
# - ci-not-authorized
|
||||||
variables:
|
|
||||||
VAGRANT_DEFAULT_PROVIDER: "libvirt"
|
|
||||||
VAGRANT_HOME: "$CI_PROJECT_DIR/.vagrant.d"
|
|
||||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p $VAGRANT_HOME
|
|
||||||
- groups
|
|
||||||
- python3 -m venv citest
|
|
||||||
- source citest/bin/activate
|
|
||||||
- vagrant plugin expunge --reinstall --force --no-tty
|
|
||||||
- vagrant plugin install vagrant-libvirt
|
|
||||||
- pip install --no-compile --no-cache-dir pip -U
|
|
||||||
- pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/requirements.txt
|
|
||||||
- pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/tests/requirements.txt
|
|
||||||
- ./tests/scripts/rebase.sh
|
- ./tests/scripts/rebase.sh
|
||||||
- ./tests/scripts/vagrant_clean.sh
|
|
||||||
script:
|
script:
|
||||||
- ./tests/scripts/molecule_run.sh
|
- ./tests/scripts/molecule_run.sh
|
||||||
after_script:
|
after_script:
|
||||||
@@ -32,12 +18,6 @@
|
|||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- molecule_logs/
|
- molecule_logs/
|
||||||
cache:
|
|
||||||
key: $CI_JOB_NAME_SLUG
|
|
||||||
paths:
|
|
||||||
- .vagrant.d/boxes
|
|
||||||
- .cache/pip
|
|
||||||
policy: pull-push # TODO: change to "pull" when not on main
|
|
||||||
|
|
||||||
# CI template for periodic CI jobs
|
# CI template for periodic CI jobs
|
||||||
# Enabled when PERIODIC_CI_ENABLED var is set
|
# Enabled when PERIODIC_CI_ENABLED var is set
|
||||||
|
|||||||
Reference in New Issue
Block a user