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.

81 lines
2.1 KiB

  1. ---
  2. .vagrant:
  3. extends: .testcases
  4. needs:
  5. - ci-not-authorized
  6. variables:
  7. CI_PLATFORM: "vagrant"
  8. SSH_USER: "vagrant"
  9. VAGRANT_DEFAULT_PROVIDER: "libvirt"
  10. KUBESPRAY_VAGRANT_CONFIG: tests/files/${CI_JOB_NAME}.rb
  11. DOCKER_NAME: vagrant
  12. VAGRANT_ANSIBLE_TAGS: facts
  13. VAGRANT_HOME: "$CI_PROJECT_DIR/.vagrant.d"
  14. PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  15. tags: [ffci-vm-large]
  16. # only: [/^pr-.*$/]
  17. # except: ['triggers']
  18. image: quay.io/kubespray/vm-kubespray-ci:v13
  19. services: []
  20. before_script:
  21. - echo $USER
  22. - python3 -m venv citest
  23. - source citest/bin/activate
  24. - vagrant plugin expunge --reinstall --force --no-tty
  25. - vagrant plugin install vagrant-libvirt
  26. - pip install --no-compile --no-cache-dir pip -U
  27. - pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/requirements.txt
  28. - pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/tests/requirements.txt
  29. - ./tests/scripts/vagrant_clean.sh
  30. script:
  31. - ./tests/scripts/testcases_run.sh
  32. cache:
  33. key: $CI_JOB_NAME_SLUG
  34. paths:
  35. - .vagrant.d/boxes
  36. - .cache/pip
  37. policy: pull-push # TODO: change to "pull" when not on main
  38. vagrant_ubuntu24-calico-dual-stack:
  39. stage: deploy-extended
  40. extends: .vagrant
  41. rules:
  42. - if: $PR_LABELS =~ /.*(ci-extended|ci-full).*/
  43. when: on_success
  44. allow_failure: false
  45. vagrant_ubuntu24-calico-ipv6only-stack:
  46. stage: deploy-extended
  47. extends: .vagrant
  48. rules:
  49. - if: $PR_LABELS =~ /.*(ci-extended|ci-full).*/
  50. when: on_success
  51. allow_failure: false
  52. vagrant_ubuntu20-flannel:
  53. stage: deploy-part1
  54. extends: .vagrant
  55. when: on_success
  56. allow_failure: false
  57. vagrant_ubuntu20-flannel-collection:
  58. stage: deploy-extended
  59. extends: .vagrant
  60. when: manual
  61. vagrant_ubuntu20-kube-router-sep:
  62. stage: deploy-extended
  63. extends: .vagrant
  64. when: manual
  65. # Service proxy test fails connectivity testing
  66. vagrant_ubuntu20-kube-router-svc-proxy:
  67. stage: deploy-extended
  68. extends: .vagrant
  69. when: manual
  70. vagrant_fedora39-kube-router:
  71. stage: deploy-extended
  72. extends: .vagrant
  73. when: manual
  74. # FIXME: this test if broken (perma-failing)