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.

95 lines
2.3 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. needs: []
  10. # - ci-not-authorized
  11. variables:
  12. VAGRANT_DEFAULT_PROVIDER: "libvirt"
  13. before_script:
  14. - groups
  15. - python3 -m venv citest
  16. - source citest/bin/activate
  17. - vagrant plugin expunge --reinstall --force --no-tty
  18. - vagrant plugin install vagrant-libvirt
  19. - pip install --no-compile --no-cache-dir pip -U
  20. - pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/requirements.txt
  21. - pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/tests/requirements.txt
  22. - ./tests/scripts/rebase.sh
  23. - ./tests/scripts/vagrant_clean.sh
  24. script:
  25. - ./tests/scripts/molecule_run.sh
  26. after_script:
  27. - ./tests/scripts/molecule_logs.sh
  28. artifacts:
  29. when: always
  30. paths:
  31. - molecule_logs/
  32. # CI template for periodic CI jobs
  33. # Enabled when PERIODIC_CI_ENABLED var is set
  34. .molecule_periodic:
  35. only:
  36. variables:
  37. - $PERIODIC_CI_ENABLED
  38. allow_failure: true
  39. extends: .molecule
  40. molecule_full:
  41. extends: .molecule_periodic
  42. molecule_no_container_engines:
  43. extends: .molecule
  44. script:
  45. - ./tests/scripts/molecule_run.sh -e container-engine
  46. when: on_success
  47. molecule_docker:
  48. extends: .molecule
  49. script:
  50. - ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
  51. when: on_success
  52. molecule_containerd:
  53. extends: .molecule
  54. script:
  55. - ./tests/scripts/molecule_run.sh -i container-engine/containerd
  56. when: on_success
  57. molecule_cri-o:
  58. extends: .molecule
  59. stage: deploy-part1
  60. script:
  61. - ./tests/scripts/molecule_run.sh -i container-engine/cri-o
  62. allow_failure: true
  63. when: on_success
  64. # # Stage 3 container engines don't get as much attention so allow them to fail
  65. # molecule_kata:
  66. # extends: .molecule
  67. # stage: deploy-extended
  68. # script:
  69. # - ./tests/scripts/molecule_run.sh -i container-engine/kata-containers
  70. # when: manual
  71. # # FIXME: this test is broken (perma-failing)
  72. molecule_gvisor:
  73. extends: .molecule
  74. stage: deploy-extended
  75. script:
  76. - ./tests/scripts/molecule_run.sh -i container-engine/gvisor
  77. when: manual
  78. # FIXME: this test is broken (perma-failing)
  79. molecule_youki:
  80. extends: .molecule
  81. stage: deploy-extended
  82. script:
  83. - ./tests/scripts/molecule_run.sh -i container-engine/youki
  84. when: manual
  85. # FIXME: this test is broken (perma-failing)