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.

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