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.

89 lines
2.2 KiB

  1. ---
  2. molecule_tests:
  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. .vagrant:
  25. extends: .testcases
  26. variables:
  27. CI_PLATFORM: "vagrant"
  28. SSH_USER: "vagrant"
  29. VAGRANT_DEFAULT_PROVIDER: "libvirt"
  30. KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb
  31. tags: [c3.small.x86]
  32. only: [/^pr-.*$/]
  33. except: ['triggers']
  34. image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
  35. services: []
  36. before_script:
  37. - apt-get update && apt-get install -y python3-pip
  38. - update-alternatives --install /usr/bin/python python /usr/bin/python3 10
  39. - python -m pip uninstall -y ansible ansible-base ansible-core
  40. - python -m pip install -r tests/requirements.txt
  41. - ./tests/scripts/vagrant_clean.sh
  42. script:
  43. - ./tests/scripts/testcases_run.sh
  44. after_script:
  45. - chronic ./tests/scripts/testcases_cleanup.sh
  46. allow_failure: true
  47. vagrant_ubuntu18-calico-dual-stack:
  48. stage: deploy-part2
  49. extends: .vagrant
  50. when: on_success
  51. vagrant_ubuntu18-flannel:
  52. stage: deploy-part2
  53. extends: .vagrant
  54. when: on_success
  55. vagrant_ubuntu18-weave-medium:
  56. stage: deploy-part2
  57. extends: .vagrant
  58. when: manual
  59. vagrant_ubuntu20-flannel:
  60. stage: deploy-part2
  61. extends: .vagrant
  62. when: on_success
  63. vagrant_ubuntu16-kube-router-sep:
  64. stage: deploy-part2
  65. extends: .vagrant
  66. when: manual
  67. # Service proxy test fails connectivity testing
  68. vagrant_ubuntu16-kube-router-svc-proxy:
  69. stage: deploy-part2
  70. extends: .vagrant
  71. when: manual
  72. vagrant_fedora35-kube-router:
  73. stage: deploy-part2
  74. extends: .vagrant
  75. when: on_success
  76. vagrant_centos7-kube-router:
  77. stage: deploy-part2
  78. extends: .vagrant
  79. when: manual