Verified Commit bdbf998d authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Do all linting in parallel

parent 7b736421
Pipeline #830 passed with stages
in 9 minutes and 52 seconds
...@@ -2,43 +2,39 @@ default: ...@@ -2,43 +2,39 @@ default:
image: "archlinux:latest" image: "archlinux:latest"
stages: stages:
- shfmt - lint
- shellcheck
- yapf
- flake8
- validate-packer
- build - build
shellcheck: shellcheck:
stage: shellcheck stage: lint
before_script: before_script:
- pacman -Syu --needed --noconfirm shellcheck - pacman -Syu --needed --noconfirm shellcheck
script: script:
find . -iname "*.sh" -exec shellcheck {} + find . -iname "*.sh" -exec shellcheck {} +
shfmt: shfmt:
stage: shfmt stage: lint
before_script: before_script:
- pacman -Syu --needed --noconfirm shfmt - pacman -Syu --needed --noconfirm shfmt
script: script:
find . -iname "*.sh" -exec shfmt -i 2 -ci -d {} + find . -iname "*.sh" -exec shfmt -i 2 -ci -d {} +
yapf: yapf:
stage: yapf stage: lint
before_script: before_script:
- pacman -Syu --needed --noconfirm yapf - pacman -Syu --needed --noconfirm yapf
script: script:
find . -iname "*.py" -exec python3 -m yapf -d {} + find . -iname "*.py" -exec python3 -m yapf -d {} +
flake8: flake8:
stage: flake8 stage: lint
before_script: before_script:
- pacman -Syu --needed --noconfirm flake8 - pacman -Syu --needed --noconfirm flake8
script: script:
find . -iname "*.py" -exec python3 -m flake8 {} + find . -iname "*.py" -exec python3 -m flake8 {} +
validate-packer: validate-packer:
stage: validate-packer stage: lint
before_script: before_script:
- pacman -Syu --needed --noconfirm packer - pacman -Syu --needed --noconfirm packer
script: script:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment