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.

42 lines
1.1 KiB

  1. ---
  2. molecule_tests:
  3. tags: [vagrant]
  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. tags: [vagrant]
  24. only: [/^pr-.*$/]
  25. except: ['triggers']
  26. image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
  27. services: []
  28. before_script:
  29. - apt-get update && apt-get install -y python3-pip
  30. - update-alternatives --install /usr/bin/python python /usr/bin/python3 10
  31. - python -m pip install -r tests/requirements.txt
  32. - ./tests/scripts/vagrant_clean.sh
  33. script:
  34. - vagrant up
  35. after_script:
  36. - vagrant destroy --force
  37. vagrant_ubuntu18-flannel:
  38. stage: deploy-part2
  39. extends: .vagrant
  40. when: on_success