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.

61 lines
1.6 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
  14. - python -m pip install -r tests/requirements.txt
  15. - ./tests/scripts/vagrant_clean.sh
  16. script:
  17. - ./tests/scripts/molecule_run.sh
  18. .vagrant:
  19. extends: .testcases
  20. variables:
  21. CI_PLATFORM: "vagrant"
  22. SSH_USER: "vagrant"
  23. VAGRANT_DEFAULT_PROVIDER: "libvirt"
  24. KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb
  25. tags: [c3.small.x86]
  26. only: [/^pr-.*$/]
  27. except: ['triggers']
  28. image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
  29. services: []
  30. before_script:
  31. - apt-get update && apt-get install -y python3-pip
  32. - update-alternatives --install /usr/bin/python python /usr/bin/python3 10
  33. - python -m pip uninstall -y ansible
  34. - python -m pip install -r tests/requirements.txt
  35. - ./tests/scripts/vagrant_clean.sh
  36. script:
  37. - ./tests/scripts/testcases_run.sh
  38. after_script:
  39. - chronic ./tests/scripts/testcases_cleanup.sh
  40. vagrant_ubuntu18-calico-dual-stack:
  41. stage: deploy-part2
  42. extends: .vagrant
  43. when: on_success
  44. vagrant_ubuntu18-flannel:
  45. stage: deploy-part2
  46. extends: .vagrant
  47. when: on_success
  48. vagrant_ubuntu18-weave-medium:
  49. stage: deploy-part2
  50. extends: .vagrant
  51. when: manual
  52. vagrant_ubuntu20-flannel:
  53. stage: deploy-part2
  54. extends: .vagrant
  55. when: on_success