github.com/blystad/deis@v0.11.0/controller/Makefile (about) 1 include ../includes.mk 2 3 .PHONY: all test logs 4 5 all: build run 6 7 build: 8 $(call rsync_all) 9 $(call ssh_all,'cd share/controller && sudo docker build -t deis/controller .') 10 11 install: check-fleet 12 $(FLEETCTL) load systemd/* 13 14 uninstall: check-fleet stop 15 $(FLEETCTL) unload systemd/* 16 $(FLEETCTL) destroy systemd/* 17 18 start: check-fleet 19 $(FLEETCTL) start -no-block systemd/* 20 21 stop: check-fleet 22 $(FLEETCTL) stop -block-attempts=600 systemd/* 23 24 restart: stop start 25 26 run: install start 27 28 clean: uninstall 29 $(call ssh_all,'sudo docker rm -f deis-controller') 30 31 full-clean: clean 32 $(call ssh_all,'sudo docker rmi deis/controller') 33 34 runserver: 35 python manage.py runserver 36 37 db: 38 python manage.py syncdb --migrate --noinput 39 40 coverage: 41 coverage run manage.py test --noinput api 42 coverage html 43 44 test: test-unit test-functional 45 46 setup-venv: 47 @if [ ! -d venv ]; then virtualenv venv; fi 48 venv/bin/pip install -q -r requirements.txt -r dev_requirements.txt 49 50 test-style: setup-venv 51 venv/bin/flake8 52 53 test-unit: setup-venv test-style 54 venv/bin/python manage.py test --noinput api 55 56 test-functional: 57 GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v -timeout 20m ./tests/...