-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 887 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
BOOT2DOCKER_VERSION := 17.03.1-ce
B2D_ISO_FILE := boot2docker.iso
B2D_ISO_URL := https://github.com/boot2docker/boot2docker/releases/download/v$(BOOT2DOCKER_VERSION)/boot2docker.iso
B2D_ISO_CHECKSUM := 85f1947876c0f02e4dfbab838cc18d9b
default: parallels
parallels: clean-parallels build-parallels test-parallels
$(B2D_ISO_FILE):
curl -L -o ${B2D_ISO_FILE} ${B2D_ISO_URL}
$(PRL_B2D_ISO_FILE):
curl -L -o ${PRL_B2D_ISO_FILE} ${PRL_B2D_ISO_URL}
build-parallels: $(B2D_ISO_FILE)
packer build -parallel=false -only=parallels-iso \
-var 'B2D_ISO_FILE=${B2D_ISO_FILE}' \
-var 'B2D_ISO_CHECKSUM=${B2D_ISO_CHECKSUM}' \
template.json
clean-parallels:
rm -f *-parallels.box $(B2D_ISO_FILE)
@cd ./tests; vagrant destroy -f || :
@cd ./tests; rm -f Vagrantfile
test-parallels:
@cd ./tests; bats --tap *.bats
.PHONY: parallels clean clean-parallels build-parallels test-parallels