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.

48 lines
1.3 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: "kubespray"
  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. - vagrant up
  36. after_script:
  37. - vagrant destroy --force
  38. vagrant_ubuntu18-flannel:
  39. stage: deploy-part2
  40. extends: .vagrant
  41. when: on_success
  42. vagrant_ubuntu18-weave-medium:
  43. stage: deploy-part2
  44. extends: .vagrant
  45. when: manual