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.

86 lines
2.1 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/cri-dockerd
  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. # Stage 3 container engines don't get as much attention so allow them to fail
  56. molecule_kata:
  57. extends: .molecule
  58. stage: deploy-part3
  59. allow_failure: true
  60. script:
  61. - ./tests/scripts/molecule_run.sh -i container-engine/kata-containers
  62. when: on_success
  63. molecule_gvisor:
  64. extends: .molecule
  65. stage: deploy-part3
  66. allow_failure: true
  67. script:
  68. - ./tests/scripts/molecule_run.sh -i container-engine/gvisor
  69. when: on_success
  70. molecule_youki:
  71. extends: .molecule
  72. stage: deploy-part3
  73. allow_failure: true
  74. script:
  75. - ./tests/scripts/molecule_run.sh -i container-engine/youki
  76. when: on_success