Verified Commit 799e50ee authored by Christian Rebischke's avatar Christian Rebischke
Browse files

use before_script for each job

parent 40573f6e
Pipeline #577 failed with stages
in 2 minutes and 10 seconds
...@@ -7,52 +7,51 @@ stages: ...@@ -7,52 +7,51 @@ stages:
- yapf - yapf
- flake8 - flake8
- validate-packer - validate-packer
- validate-local
- validate-cloud
- build - build
- pacman -Syu --needed --noconfirm qemu-headless virtualbox packer shfmt shellcheck yapf flake8
shellcheck: shellcheck:
stage: shellcheck stage: shellcheck
- pacman -Syu --needed --noconfirm shellcheck
script: script:
find . -iname "*.sh" -exec shellcheck {} + find . -iname "*.sh" -exec shellcheck {} +
shfmt: shfmt:
stage: shfmt stage: 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: 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: 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: validate-packer
- pacman -Syu --needed --noconfirm packer
script: script:
packer validate -var "iso_checksum_url=" -except=vagrant-cloud vagrant.json - packer validate -var "iso_checksum_url=" -except=vagrant-cloud vagrant.json
- packer validate local.json
validate-local: - packer validate cloud.json
stage: validate-local
packer validate local.json
stage: validate-cloud
packer validate cloud.json
build: build:
stage: build stage: build
tags: tags:
- secure-kvm - secure-kvm
- secure-virtualbox - secure-virtualbox
- pacman -Syu --needed --noconfirm qemu-headless virtualbox
script: script:
packer build -parallel-builds=1 -var 'headless=true' -var 'write_zeroes=yes' -except=vmware-iso local.json packer build -parallel-builds=1 -var 'headless=true' -var 'write_zeroes=yes' -except=vmware-iso local.json
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