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.

70 lines
1.7 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. ---
  2. stages:
  3. - unit-tests
  4. - deploy-part1
  5. - moderator
  6. - deploy-part2
  7. - deploy-gce
  8. - deploy-special
  9. variables:
  10. FAILFASTCI_NAMESPACE: 'kargo-ci'
  11. GITLAB_REPOSITORY: 'kargo-ci/kubernetes-sigs-kubespray'
  12. # DOCKER_HOST: tcp://localhost:2375
  13. ANSIBLE_FORCE_COLOR: "true"
  14. MAGIC: "ci check this"
  15. TEST_ID: "$CI_PIPELINE_ID-$CI_BUILD_ID"
  16. CI_TEST_VARS: "./tests/files/${CI_JOB_NAME}.yml"
  17. GS_ACCESS_KEY_ID: $GS_KEY
  18. GS_SECRET_ACCESS_KEY: $GS_SECRET
  19. CONTAINER_ENGINE: docker
  20. SSH_USER: root
  21. GCE_PREEMPTIBLE: "false"
  22. ANSIBLE_KEEP_REMOTE_FILES: "1"
  23. ANSIBLE_CONFIG: ./tests/ansible.cfg
  24. ANSIBLE_INVENTORY: ./inventory/sample/${CI_JOB_NAME}-${BUILD_NUMBER}.ini
  25. IDEMPOT_CHECK: "false"
  26. RESET_CHECK: "false"
  27. UPGRADE_TEST: "false"
  28. LOG_LEVEL: "-vv"
  29. before_script:
  30. - ./tests/scripts/rebase.sh
  31. - /usr/bin/python -m pip install -r tests/requirements.txt
  32. - mkdir -p /.ssh
  33. .job: &job
  34. tags:
  35. - packet
  36. variables:
  37. KUBESPRAY_VERSION: v2.10.0
  38. image: quay.io/kubespray/kubespray:$KUBESPRAY_VERSION
  39. .testcases: &testcases
  40. <<: *job
  41. services:
  42. - docker:dind
  43. before_script:
  44. - ./tests/scripts/rebase.sh
  45. - ./tests/scripts/testcases_prepare.sh
  46. script:
  47. - ./tests/scripts/testcases_run.sh
  48. after_script:
  49. - ./tests/scripts/testcases_cleanup.sh
  50. # For failfast, at least 1 job must be defined in .gitlab-ci.yml
  51. # Premoderated with manual actions
  52. ci-authorized:
  53. extends: .job
  54. stage: moderator
  55. script:
  56. - /bin/sh scripts/premoderator.sh
  57. except: ['triggers', 'master']
  58. include:
  59. - .gitlab-ci/lint.yml
  60. - .gitlab-ci/shellcheck.yml
  61. - .gitlab-ci/gce.yml
  62. - .gitlab-ci/digital-ocean.yml
  63. - .gitlab-ci/terraform.yml
  64. - .gitlab-ci/packet.yml