Use a separate runner for light CI jobs (#5771)

This commit is contained in:
Maxime Guyot 2020-03-13 18:29:22 +01:00 committed by GitHub
parent 25a1e5f952
commit 221c6a8eef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View file

@ -2,6 +2,7 @@
yamllint:
extends: .job
stage: unit-tests
tags: [light]
variables:
LANG: C.UTF-8
script:
@ -11,6 +12,7 @@ yamllint:
vagrant-validate:
extends: .job
stage: unit-tests
tags: [light]
variables:
VAGRANT_VERSION: 2.2.4
script:
@ -20,6 +22,7 @@ vagrant-validate:
ansible-lint:
extends: .job
stage: unit-tests
tags: [light]
# lint every yml/yaml file that looks like it contains Ansible plays
script: |-
grep -Rl '^- hosts: \|^ hosts: ' --include \*.yml --include \*.yaml . | xargs -P 4 -n 25 ansible-lint -v
@ -28,6 +31,7 @@ ansible-lint:
syntax-check:
extends: .job
stage: unit-tests
tags: [light]
variables:
ANSIBLE_INVENTORY: inventory/local-tests.cfg
ANSIBLE_REMOTE_USER: root
@ -43,6 +47,7 @@ syntax-check:
tox-inventory-builder:
stage: unit-tests
tags: [light]
extends: .job
before_script:
- ./tests/scripts/rebase.sh
@ -56,6 +61,7 @@ tox-inventory-builder:
markdownlint:
stage: unit-tests
tags: [light]
image: node
before_script:
- npm install -g markdownlint-cli

View file

@ -2,6 +2,7 @@
shellcheck:
extends: .job
stage: unit-tests
tags: [light]
variables:
SHELLCHECK_VERSION: v0.6.0
before_script:

View file

@ -22,6 +22,7 @@
.terraform_validate:
extends: .terraform_install
stage: unit-tests
tags: [light]
only: ['master', /^pr-.*$/]
script:
- terraform validate -var-file=cluster.tfvars contrib/terraform/$PROVIDER
@ -29,6 +30,7 @@
.terraform_apply:
extends: .terraform_install
tags: [light]
stage: deploy-part2
when: manual
only: [/^pr-.*$/]
@ -106,6 +108,7 @@ tf-validate-aws:
tf-ovh_cleanup:
stage: unit-tests
tags: [light]
image: python
variables:
<<: *ovh_variables