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.8 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. allow_failure: true
  57. script:
  58. - ./tests/scripts/molecule_run.sh -i container-engine/kata-containers
  59. when: on_success
  60. molecule_gvisor:
  61. extends: .molecule
  62. stage: deploy-part3
  63. allow_failure: true
  64. script:
  65. - ./tests/scripts/molecule_run.sh -i container-engine/gvisor
  66. when: on_success
  67. molecule_youki:
  68. extends: .molecule
  69. stage: deploy-part3
  70. allow_failure: true
  71. script:
  72. - ./tests/scripts/molecule_run.sh -i container-engine/youki
  73. when: on_success