-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile.outdated
More file actions
53 lines (40 loc) · 1.1 KB
/
Makefile.outdated
File metadata and controls
53 lines (40 loc) · 1.1 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FLAVOUR?= example
all: check-commands buildbox startvms buildpot publishpot testpot
check-commands:
# check if required tools are available
@ansible --version >/dev/null
@bash --version >/dev/null
@git --version >/dev/null
@packer --version >/dev/null
@vagrant --version >/dev/null
@vboxheadless --version >/dev/null
buildbox:
# make sure box is available
@(vagrant box list | grep "FreeBSD-12.2-RELEASE-amd64" |\
grep "virtualbox" >/dev/null) || ./boxbuild.sh
startvms:
# up/provision VMs
@(vagrant plugin list | grep "vagrant-disksize" >/dev/null)\
|| vagrant plugin install vagrant-disksize
vagrant up
buildpot:
# build example pot image
./potbuild.sh -v ${FLAVOUR}
publishpot:
./potpublish.sh -v ${FLAVOUR}
testpot:
./pottest.sh -v ${FLAVOUR}
stopvms:
# shutdown vms
vagrant halt
status:
vagrant status
clean:
rm -rf _build
destroyvm:
vagrant destroy -f
removebox:
@(vagrant box list | grep "FreeBSD-12.2-RELEASE-amd64" |\
grep "virtualbox" >/dev/null) && (vagrant box remove \
-f --provider virtualbox FreeBSD-12.2-RELEASE-amd64) || true
distclean: clean destroyvm removebox