mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
build: add linter options.
This commit is contained in:
parent
24affe46f2
commit
a53f10e431
@ -23,7 +23,7 @@ bash:
|
|||||||
image: koalaman/shellcheck-alpine
|
image: koalaman/shellcheck-alpine
|
||||||
script:
|
script:
|
||||||
- shellcheck --shell=bash
|
- shellcheck --shell=bash
|
||||||
PKGBUILD dists/build.sh
|
PKGBUILD dists/build.sh dists/docker.sh
|
||||||
tests/packer/init/init.sh tests/packer/src/aa-update tests/packer/init/clean.sh
|
tests/packer/init/init.sh tests/packer/src/aa-update tests/packer/init/clean.sh
|
||||||
debian/apparmor.d.postinst debian/apparmor.d.postrm
|
debian/apparmor.d.postinst debian/apparmor.d.postrm
|
||||||
|
|
||||||
@ -33,6 +33,16 @@ golangci-lint:
|
|||||||
script:
|
script:
|
||||||
- golangci-lint run
|
- golangci-lint run
|
||||||
|
|
||||||
|
packer:
|
||||||
|
stage: lint
|
||||||
|
image:
|
||||||
|
name: hashicorp/packer:latest
|
||||||
|
entrypoint: [""]
|
||||||
|
script:
|
||||||
|
- cd tests &&
|
||||||
|
packer fmt --check packer/ &&
|
||||||
|
packer validate --syntax-only packer/
|
||||||
|
|
||||||
sast:
|
sast:
|
||||||
stage: lint
|
stage: lint
|
||||||
|
|
||||||
|
3
Makefile
3
Makefile
@ -89,8 +89,9 @@ tests:
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
@golangci-lint run
|
@golangci-lint run
|
||||||
|
@make --directory=tests lint
|
||||||
@shellcheck --shell=bash \
|
@shellcheck --shell=bash \
|
||||||
PKGBUILD dists/build.sh \
|
PKGBUILD dists/build.sh dists/docker.sh \
|
||||||
tests/packer/init/init.sh tests/packer/src/aa-update tests/packer/init/clean.sh \
|
tests/packer/init/init.sh tests/packer/src/aa-update tests/packer/init/clean.sh \
|
||||||
debian/${PKGNAME}.postinst debian/${PKGNAME}.postrm
|
debian/${PKGNAME}.postinst debian/${PKGNAME}.postrm
|
||||||
|
|
||||||
|
@ -18,11 +18,11 @@ BASE = archlinux debian ubuntu opensuse
|
|||||||
.PHONY: ${BASE} lint
|
.PHONY: ${BASE} lint
|
||||||
|
|
||||||
$(BASE):
|
$(BASE):
|
||||||
make --directory=../ package dist=${@}
|
@make --directory=../ package dist=${@}
|
||||||
packer build -force -var version=${VERSION} \
|
@packer build -force -var version=${VERSION} \
|
||||||
-var disk_size=${disk} -var flavor="${flavor}" \
|
-var disk_size=${disk} -var flavor="${flavor}" \
|
||||||
-only=qemu.${@}-${flavor} packer/
|
-only=qemu.${@}-${flavor} packer/
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@packer fmt packer/
|
@packer fmt --check packer/
|
||||||
@packer validate packer/
|
@packer validate --syntax-only packer/
|
||||||
|
Loading…
Reference in New Issue
Block a user