.gitlab-ci.yml 893 Bytes
Newer Older
1
2
3
default:
  image: "archlinux:latest"
  tags:
4
5
    - secure-kvm
    - secure-virtualbox
6
7

before_script:
Christian Rebischke's avatar
Christian Rebischke committed
8
  - pacman -Syu --needed --noconfirm qemu-headless virtualbox packer shfmt shellcheck yapf flake8
9

Christian Rebischke's avatar
Christian Rebischke committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
shellcheck:
  script:
    find . -iname "*.sh" -exec shellcheck {} +

shfmt:
  script:
    find . -iname "*.sh" -exec ./shfmt -i 2 -ci -d {} +

yapf:
  script:
    find . -iname "*.py" -exec python3 -m yapf -d {} +

flake8:
  script:
    find . -iname "*.py" -exec python3 -m flake8 {} +

validate-packer:
  script:
    packer validate -var "iso_checksum_url=https://mirror.pkgbuild.com/iso/latest/sha1sums.txt" -except=vagrant-cloud vagrant.json

validate-local:
  script:
    packer validate local.json

validate-cloud:
  script:
    packer validate cloud.json

build:
39
  script:
40
    packer build -parallel-builds=1 -var 'headless=true' -var 'write_zeroes=yes' -except=vmware-iso local.json