mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Use a separate runner for light CI jobs (#5771)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
yamllint:
|
yamllint:
|
||||||
extends: .job
|
extends: .job
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
tags: [light]
|
||||||
variables:
|
variables:
|
||||||
LANG: C.UTF-8
|
LANG: C.UTF-8
|
||||||
script:
|
script:
|
||||||
@@ -11,6 +12,7 @@ yamllint:
|
|||||||
vagrant-validate:
|
vagrant-validate:
|
||||||
extends: .job
|
extends: .job
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
tags: [light]
|
||||||
variables:
|
variables:
|
||||||
VAGRANT_VERSION: 2.2.4
|
VAGRANT_VERSION: 2.2.4
|
||||||
script:
|
script:
|
||||||
@@ -20,6 +22,7 @@ vagrant-validate:
|
|||||||
ansible-lint:
|
ansible-lint:
|
||||||
extends: .job
|
extends: .job
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
tags: [light]
|
||||||
# lint every yml/yaml file that looks like it contains Ansible plays
|
# lint every yml/yaml file that looks like it contains Ansible plays
|
||||||
script: |-
|
script: |-
|
||||||
grep -Rl '^- hosts: \|^ hosts: ' --include \*.yml --include \*.yaml . | xargs -P 4 -n 25 ansible-lint -v
|
grep -Rl '^- hosts: \|^ hosts: ' --include \*.yml --include \*.yaml . | xargs -P 4 -n 25 ansible-lint -v
|
||||||
@@ -28,6 +31,7 @@ ansible-lint:
|
|||||||
syntax-check:
|
syntax-check:
|
||||||
extends: .job
|
extends: .job
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
tags: [light]
|
||||||
variables:
|
variables:
|
||||||
ANSIBLE_INVENTORY: inventory/local-tests.cfg
|
ANSIBLE_INVENTORY: inventory/local-tests.cfg
|
||||||
ANSIBLE_REMOTE_USER: root
|
ANSIBLE_REMOTE_USER: root
|
||||||
@@ -43,6 +47,7 @@ syntax-check:
|
|||||||
|
|
||||||
tox-inventory-builder:
|
tox-inventory-builder:
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
tags: [light]
|
||||||
extends: .job
|
extends: .job
|
||||||
before_script:
|
before_script:
|
||||||
- ./tests/scripts/rebase.sh
|
- ./tests/scripts/rebase.sh
|
||||||
@@ -56,6 +61,7 @@ tox-inventory-builder:
|
|||||||
|
|
||||||
markdownlint:
|
markdownlint:
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
tags: [light]
|
||||||
image: node
|
image: node
|
||||||
before_script:
|
before_script:
|
||||||
- npm install -g markdownlint-cli
|
- npm install -g markdownlint-cli
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
shellcheck:
|
shellcheck:
|
||||||
extends: .job
|
extends: .job
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
tags: [light]
|
||||||
variables:
|
variables:
|
||||||
SHELLCHECK_VERSION: v0.6.0
|
SHELLCHECK_VERSION: v0.6.0
|
||||||
before_script:
|
before_script:
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
.terraform_validate:
|
.terraform_validate:
|
||||||
extends: .terraform_install
|
extends: .terraform_install
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
tags: [light]
|
||||||
only: ['master', /^pr-.*$/]
|
only: ['master', /^pr-.*$/]
|
||||||
script:
|
script:
|
||||||
- terraform validate -var-file=cluster.tfvars contrib/terraform/$PROVIDER
|
- terraform validate -var-file=cluster.tfvars contrib/terraform/$PROVIDER
|
||||||
@@ -29,6 +30,7 @@
|
|||||||
|
|
||||||
.terraform_apply:
|
.terraform_apply:
|
||||||
extends: .terraform_install
|
extends: .terraform_install
|
||||||
|
tags: [light]
|
||||||
stage: deploy-part2
|
stage: deploy-part2
|
||||||
when: manual
|
when: manual
|
||||||
only: [/^pr-.*$/]
|
only: [/^pr-.*$/]
|
||||||
@@ -106,6 +108,7 @@ tf-validate-aws:
|
|||||||
|
|
||||||
tf-ovh_cleanup:
|
tf-ovh_cleanup:
|
||||||
stage: unit-tests
|
stage: unit-tests
|
||||||
|
tags: [light]
|
||||||
image: python
|
image: python
|
||||||
variables:
|
variables:
|
||||||
<<: *ovh_variables
|
<<: *ovh_variables
|
||||||
|
|||||||
Reference in New Issue
Block a user