tests: simplify test makefile.
This commit is contained in:
parent
9731a09588
commit
c9c5db9b9a
1 changed files with 6 additions and 8 deletions
|
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
# make archlinux flavor=gnome
|
# make archlinux flavor=gnome
|
||||||
# vagrant up archlinux-gnome
|
# vagrant up arch-gnome
|
||||||
# vagrant ssh archlinux-gnome
|
# vagrant ssh archl-gnome
|
||||||
|
|
||||||
# Build variables
|
# Build variables
|
||||||
flavor ?=
|
flavor ?=
|
||||||
|
|
@ -18,12 +18,10 @@ PACKERS = $(notdir $(patsubst %.pkr.hcl,%,$(wildcard packer/*.pkr.hcl)))
|
||||||
.PHONY: ${PACKERS} lint
|
.PHONY: ${PACKERS} lint
|
||||||
|
|
||||||
$(PACKERS):
|
$(PACKERS):
|
||||||
@for name in ${@}; do \
|
make --directory=../ package dist=${@}
|
||||||
make --directory=../ package dist=$${name}; \
|
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=main.qemu.${@}-${flavor} packer/
|
||||||
-only=main.qemu.$${name}-${flavor} packer/; \
|
|
||||||
done;
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@packer fmt packer/
|
@packer fmt packer/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue