Antoine Legrand
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
19 additions and
3 deletions
-
.gitlab-ci/molecule.yml
-
.gitlab-ci/vagrant.yml
|
@ -3,14 +3,17 @@ |
|
|
tags: [ffci-vm-med] |
|
|
tags: [ffci-vm-med] |
|
|
only: [/^pr-.*$/] |
|
|
only: [/^pr-.*$/] |
|
|
except: ['triggers'] |
|
|
except: ['triggers'] |
|
|
image: quay.io/kubespray/vm-kubespray-ci:v6 |
|
|
|
|
|
|
|
|
image: quay.io/kubespray/vm-kubespray-ci:v13 |
|
|
services: [] |
|
|
services: [] |
|
|
stage: deploy-part1 |
|
|
stage: deploy-part1 |
|
|
needs: [] |
|
|
needs: [] |
|
|
# - ci-not-authorized |
|
|
# - ci-not-authorized |
|
|
variables: |
|
|
variables: |
|
|
VAGRANT_DEFAULT_PROVIDER: "libvirt" |
|
|
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 |
|
|
- groups |
|
|
- python3 -m venv citest |
|
|
- python3 -m venv citest |
|
|
- source citest/bin/activate |
|
|
- source citest/bin/activate |
|
@ -29,10 +32,15 @@ |
|
|
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 |
|
|
|
|
|
|
|
|
.molecule_periodic: |
|
|
.molecule_periodic: |
|
|
only: |
|
|
only: |
|
|
variables: |
|
|
variables: |
|
|
|
@ -10,10 +10,12 @@ |
|
|
KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb |
|
|
KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb |
|
|
DOCKER_NAME: vagrant |
|
|
DOCKER_NAME: vagrant |
|
|
VAGRANT_ANSIBLE_TAGS: facts |
|
|
VAGRANT_ANSIBLE_TAGS: facts |
|
|
|
|
|
VAGRANT_HOME: "$CI_PROJECT_DIR/.vagrant.d" |
|
|
|
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" |
|
|
tags: [ffci-vm-large] |
|
|
tags: [ffci-vm-large] |
|
|
# only: [/^pr-.*$/] |
|
|
# only: [/^pr-.*$/] |
|
|
# except: ['triggers'] |
|
|
# except: ['triggers'] |
|
|
image: quay.io/kubespray/vm-kubespray-ci:v6 |
|
|
|
|
|
|
|
|
image: quay.io/kubespray/vm-kubespray-ci:v13 |
|
|
services: [] |
|
|
services: [] |
|
|
before_script: |
|
|
before_script: |
|
|
- echo $USER |
|
|
- echo $USER |
|
@ -27,6 +29,12 @@ |
|
|
- ./tests/scripts/vagrant_clean.sh |
|
|
- ./tests/scripts/vagrant_clean.sh |
|
|
script: |
|
|
script: |
|
|
- ./tests/scripts/testcases_run.sh |
|
|
- ./tests/scripts/testcases_run.sh |
|
|
|
|
|
cache: |
|
|
|
|
|
key: $CI_JOB_NAME_SLUG |
|
|
|
|
|
paths: |
|
|
|
|
|
- .vagrant.d/boxes |
|
|
|
|
|
- .cache/pip |
|
|
|
|
|
policy: pull-push # TODO: change to "pull" when not on main |
|
|
|
|
|
|
|
|
vagrant_ubuntu20-calico-dual-stack: |
|
|
vagrant_ubuntu20-calico-dual-stack: |
|
|
stage: deploy-extended |
|
|
stage: deploy-extended |
|
|