summaryrefslogtreecommitdiff
path: root/Makefile
blob: 20ddde0d4e91ee7f78f27925ed2c71a1c7579cf9 (plain)
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
# This Makefile is used during development and can usually be ignored
# by most people.

default:
	@echo Useful valid targets are test-validate, test-install, test-uninstall

all: test-validate test-install test-uninstall

test-validate:
	@echo ===========================================================================
	python validate.py examples/*
	@echo ===========================================================================


test-install: build
	@echo
	-helm delete --purge berth
	@echo
	helm install --name=berth --debug ./berth
	helm upgrade --debug berth ./berth \
			--values examples/cirros-test.yaml \
			--values examples/demo-ub14-apache.yaml \
			--values examples/ub16-smp-test.yaml
	@sleep 5 # give k8s a chance to see the IP
	@echo
	kubectl get pods -o wide

test-uninstall:
	helm delete --purge berth

build:
	@echo
	helm lint berth

clean:
	rm -f *~ */*~ */*/*~ berth-0.1.0.tgz
	rm -rf doc/build

.PHONY: docs
docs: clean build_docs

.PHONY: build_docs
build_docs:
	tox -e docs

.PHONY:
	all default build clean test-validate test-install test-uninstall