berth/Makefile
Chris Wedgwood c7b0aa381b Update Makefile to have generically useful targets
Change-Id: I7af3eba1d073ea4c6d3e88fd77547818cd1285bd
2017-10-30 21:38:54 -04:00

40 lines
980 B
Makefile

# 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
.PHONY:
all default build clean test-validate test-install test-uninstall