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.

76 lines
1.8 KiB

  1. ---
  2. yamllint:
  3. extends: .job
  4. stage: unit-tests
  5. tags: [light]
  6. variables:
  7. LANG: C.UTF-8
  8. script:
  9. - yamllint --strict .
  10. except: ['triggers', 'master']
  11. vagrant-validate:
  12. extends: .job
  13. stage: unit-tests
  14. tags: [light]
  15. variables:
  16. VAGRANT_VERSION: 2.2.19
  17. script:
  18. - ./tests/scripts/vagrant-validate.sh
  19. except: ['triggers', 'master']
  20. ansible-lint:
  21. extends: .job
  22. stage: unit-tests
  23. tags: [light]
  24. script:
  25. - ansible-lint -v
  26. except: ['triggers', 'master']
  27. syntax-check:
  28. extends: .job
  29. stage: unit-tests
  30. tags: [light]
  31. variables:
  32. ANSIBLE_INVENTORY: inventory/local-tests.cfg
  33. ANSIBLE_REMOTE_USER: root
  34. ANSIBLE_BECOME: "true"
  35. ANSIBLE_BECOME_USER: root
  36. ANSIBLE_VERBOSITY: "3"
  37. script:
  38. - ansible-playbook --syntax-check cluster.yml
  39. - ansible-playbook --syntax-check upgrade-cluster.yml
  40. - ansible-playbook --syntax-check reset.yml
  41. - ansible-playbook --syntax-check extra_playbooks/upgrade-only-k8s.yml
  42. except: ['triggers', 'master']
  43. tox-inventory-builder:
  44. stage: unit-tests
  45. tags: [light]
  46. extends: .job
  47. before_script:
  48. - ./tests/scripts/rebase.sh
  49. - apt-get update && apt-get install -y python3-pip
  50. - update-alternatives --install /usr/bin/python python /usr/bin/python3 10
  51. - python -m pip uninstall -y ansible ansible-base ansible-core
  52. - python -m pip install -r tests/requirements.txt
  53. script:
  54. - pip3 install tox
  55. - cd contrib/inventory_builder && tox
  56. except: ['triggers', 'master']
  57. markdownlint:
  58. stage: unit-tests
  59. tags: [light]
  60. image: node
  61. before_script:
  62. - npm install -g markdownlint-cli@0.22.0
  63. script:
  64. - markdownlint $(find . -name '*.md' | grep -vF './.git') --ignore docs/_sidebar.md --ignore contrib/dind/README.md
  65. ci-matrix:
  66. stage: unit-tests
  67. tags: [light]
  68. image: python:3
  69. script:
  70. - tests/scripts/md-table/test.sh