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.

65 lines
1.3 KiB

8 years ago
8 years ago
8 years ago
  1. stages:
  2. - unit-tests
  3. - local-deployment
  4. - calico
  5. - flannel
  6. - canal
  7. - weave
  8. variables:
  9. FAILFASTCI_NAMESPACE: 'kargo-ci'
  10. cache:
  11. paths:
  12. - cache
  13. before_script:
  14. - pip install ansible
  15. - pip install netaddr
  16. - pip install apache-libcloud==0.20.1
  17. - pip install boto==2.9.0
  18. - mkdir -p /.ssh
  19. - cp tests/ansible.cfg .
  20. .job: &job
  21. tags:
  22. - kubernetes
  23. - docker
  24. image: quay.io/ant31/kargo:master
  25. .docker_service: &docker_service
  26. variables:
  27. DOCKER_DRIVER: overlay
  28. DOCKER_HOST: tcp://localhost:2375
  29. services:
  30. - docker:dind
  31. .create_cluster: &create_cluster
  32. <<: *job
  33. <<: *docker_service
  34. syntax-check:
  35. <<: *job
  36. stage: unit-tests
  37. script:
  38. - ansible-playbook -i inventory/local-tests.cfg -u root -e ansible_ssh_user=root -b --become-user=root cluster.yml -vvv --syntax-check
  39. local-dry-run:
  40. stage: unit-tests
  41. <<: *job
  42. <<: *docker_service
  43. script:
  44. - ansible-playbook -i inventory/local-tests.cfg -u root -e ansible_ssh_user=root -b --become-user=root cluster.yml -vv -c local --syntax-check
  45. allow_failure: true
  46. idempotent:
  47. stage: local-deployment
  48. <<: *job
  49. <<: *docker_service
  50. script:
  51. - ansible-playbook -i inventory/local-tests.cfg -u root -e ansible_ssh_user=root -b --become-user=root cluster.yml -vv -c local --syntax-check
  52. allow_failure: true