Skip to content

Commit

Permalink
refactor-docker-machine test
Browse files Browse the repository at this point in the history
  • Loading branch information
yankay committed Apr 8, 2024
1 parent 3067e56 commit 0a33070
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .gitlab-ci.yml
@@ -1,12 +1,12 @@
---
stages:
- build
- unit-tests
# - build
# - unit-tests
- deploy-part1
- moderator
- deploy-part2
- deploy-part3
- deploy-special
# - moderator
# - deploy-part2
# - deploy-part3
# - deploy-special

variables:
KUBESPRAY_VERSION: v2.24.1
Expand Down
18 changes: 10 additions & 8 deletions .gitlab-ci/molecule.yml
@@ -1,15 +1,13 @@
---

.molecule:
tags: [c3.small.x86]
tags:
- packet
extends: .testcases
only: [/^pr-.*$/]
except: ['triggers']
image: $PIPELINE_IMAGE
services: []
stage: deploy-part1
before_script:
- tests/scripts/rebase.sh
- ./tests/scripts/vagrant_clean.sh
script:
- ./tests/scripts/molecule_run.sh
after_script:
Expand All @@ -18,6 +16,10 @@
when: always
paths:
- molecule_logs/
variables:
ANSIBLE_TIMEOUT: "120"
CI_PLATFORM: packet
SSH_USER: kubespray

# CI template for periodic CI jobs
# Enabled when PERIODIC_CI_ENABLED var is set
Expand All @@ -41,21 +43,21 @@ molecule_docker:
extends: .molecule
script:
- ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
when: on_success
when: manual

molecule_containerd:
extends: .molecule
script:
- ./tests/scripts/molecule_run.sh -i container-engine/containerd
when: on_success
when: manual

molecule_cri-o:
extends: .molecule
stage: deploy-part2
script:
- ./tests/scripts/molecule_run.sh -i container-engine/cri-o
allow_failure: true
when: on_success
when: manual

# Stage 3 container engines don't get as much attention so allow them to fail
molecule_kata:
Expand Down

0 comments on commit 0a33070

Please sign in to comment.