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.

83 lines
1.9 KiB

  1. ---
  2. .molecule:
  3. tags: [c3.small.x86]
  4. only: [/^pr-.*$/]
  5. except: ['triggers']
  6. image: $PIPELINE_IMAGE
  7. services: []
  8. stage: deploy-part1
  9. before_script:
  10. - tests/scripts/rebase.sh
  11. - ./tests/scripts/vagrant_clean.sh
  12. script:
  13. - ./tests/scripts/molecule_run.sh
  14. after_script:
  15. - chronic ./tests/scripts/molecule_logs.sh
  16. artifacts:
  17. when: always
  18. paths:
  19. - molecule_logs/
  20. # CI template for periodic CI jobs
  21. # Enabled when PERIODIC_CI_ENABLED var is set
  22. .molecule_periodic:
  23. only:
  24. variables:
  25. - $PERIODIC_CI_ENABLED
  26. allow_failure: true
  27. extends: .molecule
  28. molecule_full:
  29. extends: .molecule_periodic
  30. molecule_no_container_engines:
  31. extends: .molecule
  32. script:
  33. - ./tests/scripts/molecule_run.sh -e container-engine
  34. when: on_success
  35. molecule_docker:
  36. extends: .molecule
  37. script:
  38. - ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
  39. when: on_success
  40. molecule_containerd:
  41. extends: .molecule
  42. script:
  43. - ./tests/scripts/molecule_run.sh -i container-engine/containerd
  44. when: on_success
  45. molecule_cri-o:
  46. extends: .molecule
  47. stage: deploy-part2
  48. script:
  49. - ./tests/scripts/molecule_run.sh -i container-engine/cri-o
  50. allow_failure: true
  51. when: on_success
  52. # Stage 3 container engines don't get as much attention so allow them to fail
  53. molecule_kata:
  54. extends: .molecule
  55. stage: deploy-part3
  56. script:
  57. - ./tests/scripts/molecule_run.sh -i container-engine/kata-containers
  58. when: manual
  59. # FIXME: this test is broken (perma-failing)
  60. molecule_gvisor:
  61. extends: .molecule
  62. stage: deploy-part3
  63. script:
  64. - ./tests/scripts/molecule_run.sh -i container-engine/gvisor
  65. when: manual
  66. # FIXME: this test is broken (perma-failing)
  67. molecule_youki:
  68. extends: .molecule
  69. stage: deploy-part3
  70. script:
  71. - ./tests/scripts/molecule_run.sh -i container-engine/youki
  72. when: manual
  73. # FIXME: this test is broken (perma-failing)