k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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.
90 lines
2.1 KiB
90 lines
2.1 KiB
---
|
|
yamllint:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
variables:
|
|
LANG: C.UTF-8
|
|
script:
|
|
- yamllint --strict .
|
|
except: ['triggers', 'master']
|
|
|
|
vagrant-validate:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
variables:
|
|
VAGRANT_VERSION: 2.3.4
|
|
script:
|
|
- ./tests/scripts/vagrant-validate.sh
|
|
except: ['triggers', 'master']
|
|
|
|
ansible-lint:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
script:
|
|
- ansible-lint -v
|
|
except: ['triggers', 'master']
|
|
|
|
syntax-check:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
variables:
|
|
ANSIBLE_INVENTORY: inventory/local-tests.cfg
|
|
ANSIBLE_REMOTE_USER: root
|
|
ANSIBLE_BECOME: "true"
|
|
ANSIBLE_BECOME_USER: root
|
|
ANSIBLE_VERBOSITY: "3"
|
|
script:
|
|
- ansible-playbook --syntax-check cluster.yml
|
|
- ansible-playbook --syntax-check upgrade-cluster.yml
|
|
- ansible-playbook --syntax-check reset.yml
|
|
- ansible-playbook --syntax-check extra_playbooks/upgrade-only-k8s.yml
|
|
except: ['triggers', 'master']
|
|
|
|
tox-inventory-builder:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
extends: .job
|
|
before_script:
|
|
- ./tests/scripts/rebase.sh
|
|
- apt-get update && apt-get install -y python3-pip
|
|
- update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
|
- python -m pip uninstall -y ansible ansible-base ansible-core
|
|
- python -m pip install -r tests/requirements.txt
|
|
script:
|
|
- pip3 install tox
|
|
- cd contrib/inventory_builder && tox
|
|
except: ['triggers', 'master']
|
|
|
|
markdownlint:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: node
|
|
before_script:
|
|
- npm install -g markdownlint-cli@0.22.0
|
|
script:
|
|
- markdownlint $(find . -name '*.md' | grep -vF './.git') --ignore docs/_sidebar.md --ignore contrib/dind/README.md
|
|
|
|
check-readme-versions:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: python:3
|
|
script:
|
|
- tests/scripts/check_readme_versions.sh
|
|
|
|
check-typo:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: python:3
|
|
script:
|
|
- tests/scripts/check_typo.sh
|
|
|
|
ci-matrix:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: python:3
|
|
script:
|
|
- tests/scripts/md-table/test.sh
|