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: [c3.small.x86]
  4. only: [/^pr-.*$/]
  5. except: ['triggers']
  6. image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
  7. services: []
  8. stage: deploy-part1
  9. before_script:
  10. - tests/scripts/rebase.sh
  11. - apt-get update && apt-get install -y python3-pip
  12. - update-alternatives --install /usr/bin/python python /usr/bin/python3 10
  13. - python -m pip uninstall -y ansible ansible-base ansible-core
  14. - python -m pip install -r tests/requirements.txt
  15. - ./tests/scripts/vagrant_clean.sh
  16. script:
  17. - ./tests/scripts/molecule_run.sh
  18. after_script:
  19. - chronic ./tests/scripts/molecule_logs.sh
  20. artifacts:
  21. when: always
  22. paths:
  23. - molecule_logs/
  24. # CI template for periodic CI jobs
  25. # Enabled when PERIODIC_CI_ENABLED var is set
  26. .molecule_periodic:
  27. only:
  28. variables:
  29. - $PERIODIC_CI_ENABLED
  30. allow_failure: true
  31. extends: .molecule
  32. molecule_full:
  33. extends: .molecule_periodic
  34. molecule_no_container_engines:
  35. extends: .molecule
  36. script:
  37. - ./tests/scripts/molecule_run.sh -e container-engine
  38. when: on_success
  39. molecule_docker:
  40. extends: .molecule
  41. script:
  42. - ./tests/scripts/molecule_run.sh -i container-engine/docker
  43. when: on_success
  44. molecule_containerd:
  45. extends: .molecule
  46. script:
  47. - ./tests/scripts/molecule_run.sh -i container-engine/containerd
  48. when: on_success
  49. molecule_cri-o:
  50. extends: .molecule
  51. stage: deploy-part2
  52. script:
  53. - ./tests/scripts/molecule_run.sh -i container-engine/cri-o
  54. when: on_success
  55. molecule_cri-dockerd:
  56. extends: .molecule
  57. stage: deploy-part2
  58. script:
  59. - ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
  60. when: on_success
  61. # Stage 3 container engines don't get as much attention so allow them to fail
  62. molecule_kata:
  63. extends: .molecule
  64. stage: deploy-part3
  65. allow_failure: true
  66. script:
  67. - ./tests/scripts/molecule_run.sh -i container-engine/kata-containers
  68. when: on_success
  69. molecule_gvisor:
  70. extends: .molecule
  71. stage: deploy-part3
  72. allow_failure: true
  73. script:
  74. - ./tests/scripts/molecule_run.sh -i container-engine/gvisor
  75. when: on_success
  76. molecule_youki:
  77. extends: .molecule
  78. stage: deploy-part3
  79. allow_failure: true
  80. script:
  81. - ./tests/scripts/molecule_run.sh -i container-engine/youki
  82. when: on_success