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.

36 lines
885 B

  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. script:
  15. - ./tests/scripts/molecule_run.sh
  16. .vagrant:
  17. extends: .testcases
  18. variables:
  19. CI_PLATFORM: "vagrant"
  20. SSH_USER: "kubespray"
  21. VAGRANT_DEFAULT_PROVIDER: "libvirt"
  22. tags: [vagrant]
  23. only: [/^pr-.*$/]
  24. except: ['triggers']
  25. image: quay.io/kubespray/vagrant:$KUBESPRAY_VERSION
  26. services: []
  27. script:
  28. - vagrant up
  29. after_script:
  30. - vagrant destroy --force
  31. vagrant_ubuntu18-flannel:
  32. stage: deploy-part2
  33. extends: .vagrant
  34. when: on_success