You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
2.2 KiB

  1. ---
  2. .molecule:
  3. tags: [ffci-vm-med]
  4. only: [/^pr-.*$/]
  5. except: ['triggers']
  6. image: quay.io/kubespray/vm-kubespray-ci:v6
  7. services: []
  8. stage: deploy-part1
  9. variables:
  10. VAGRANT_DEFAULT_PROVIDER: "libvirt"
  11. before_script:
  12. - groups
  13. - python3 -m venv citest
  14. - source citest/bin/activate
  15. - vagrant plugin expunge --reinstall --force --no-tty
  16. - vagrant plugin install vagrant-libvirt
  17. - pip install --no-compile --no-cache-dir pip -U
  18. - pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/requirements.txt
  19. - pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/tests/requirements.txt
  20. - ./tests/scripts/rebase.sh
  21. - ./tests/scripts/vagrant_clean.sh
  22. script:
  23. - ./tests/scripts/molecule_run.sh
  24. after_script:
  25. - ./tests/scripts/molecule_logs.sh
  26. artifacts:
  27. when: always
  28. paths:
  29. - molecule_logs/
  30. # CI template for periodic CI jobs
  31. # Enabled when PERIODIC_CI_ENABLED var is set
  32. .molecule_periodic:
  33. only:
  34. variables:
  35. - $PERIODIC_CI_ENABLED
  36. allow_failure: true
  37. extends: .molecule
  38. molecule_full:
  39. extends: .molecule_periodic
  40. molecule_no_container_engines:
  41. extends: .molecule
  42. script:
  43. - ./tests/scripts/molecule_run.sh -e container-engine
  44. when: on_success
  45. molecule_docker:
  46. extends: .molecule
  47. script:
  48. - ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
  49. when: on_success
  50. molecule_containerd:
  51. extends: .molecule
  52. script:
  53. - ./tests/scripts/molecule_run.sh -i container-engine/containerd
  54. when: on_success
  55. molecule_cri-o:
  56. extends: .molecule
  57. stage: deploy-part2
  58. script:
  59. - ./tests/scripts/molecule_run.sh -i container-engine/cri-o
  60. allow_failure: true
  61. when: on_success
  62. # Stage 3 container engines don't get as much attention so allow them to fail
  63. molecule_kata:
  64. extends: .molecule
  65. stage: deploy-part3
  66. allow_failure: true
  67. script:
  68. - ./tests/scripts/molecule_run.sh -i container-engine/kata-containers
  69. when: on_success
  70. molecule_gvisor:
  71. extends: .molecule
  72. stage: deploy-part3
  73. allow_failure: true
  74. script:
  75. - ./tests/scripts/molecule_run.sh -i container-engine/gvisor
  76. when: on_success
  77. molecule_youki:
  78. extends: .molecule
  79. stage: deploy-part3
  80. allow_failure: true
  81. script:
  82. - ./tests/scripts/molecule_run.sh -i container-engine/youki
  83. when: on_success