Verified Commit 40573f6e authored by Christian Rebischke's avatar Christian Rebischke
Browse files

add stages for build pipeline

parent 9c1bfa83
Pipeline #576 passed with stages
in 14 minutes and 56 seconds
default: default:
image: "archlinux:latest" image: "archlinux:latest"
- secure-kvm stages:
- secure-virtualbox - shfmt
- shellcheck
- yapf
- flake8
- validate-packer
- validate-local
- validate-cloud
- build
before_script: before_script:
- pacman -Syu --needed --noconfirm qemu-headless virtualbox packer shfmt shellcheck yapf flake8 - pacman -Syu --needed --noconfirm qemu-headless virtualbox packer shfmt shellcheck yapf flake8
shellcheck: shellcheck:
stage: shellcheck
script: script:
find . -iname "*.sh" -exec shellcheck {} + find . -iname "*.sh" -exec shellcheck {} +
shfmt: shfmt:
stage: 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
script: script:
find . -iname "*.py" -exec python3 -m yapf -d {} + find . -iname "*.py" -exec python3 -m yapf -d {} +
flake8: flake8:
stage: flake8
script: script:
find . -iname "*.py" -exec python3 -m flake8 {} + find . -iname "*.py" -exec python3 -m flake8 {} +
validate-packer: validate-packer:
stage: validate-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
validate-local: validate-local:
stage: validate-local
script: script:
packer validate local.json packer validate local.json
validate-cloud: validate-cloud:
stage: validate-cloud
script: script:
packer validate cloud.json packer validate cloud.json
build: build:
stage: build
- secure-kvm
- secure-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