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:
image: "archlinux:latest"
tags:
- secure-kvm
- secure-virtualbox
stages:
- shfmt
- shellcheck
- yapf
- flake8
- validate-packer
- validate-local
- validate-cloud
- build
before_script:
- pacman -Syu --needed --noconfirm qemu-headless virtualbox packer shfmt shellcheck yapf flake8
shellcheck:
stage: shellcheck
script:
find . -iname "*.sh" -exec shellcheck {} +
shfmt:
stage: shfmt
script:
find . -iname "*.sh" -exec ./shfmt -i 2 -ci -d {} +
find . -iname "*.sh" -exec shfmt -i 2 -ci -d {} +
yapf:
stage: yapf
script:
find . -iname "*.py" -exec python3 -m yapf -d {} +
flake8:
stage: flake8
script:
find . -iname "*.py" -exec python3 -m flake8 {} +
validate-packer:
stage: validate-packer
script:
packer validate -var "iso_checksum_url=https://mirror.pkgbuild.com/iso/latest/sha1sums.txt" -except=vagrant-cloud vagrant.json
validate-local:
stage: validate-local
script:
packer validate local.json
validate-cloud:
stage: validate-cloud
script:
packer validate cloud.json
build:
stage: build
tags:
- secure-kvm
- secure-virtualbox
script:
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