~milo/linaro-ci-dashboard/textfield-complete

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
# Makefile for linaro-ci-dashboard

help:
	@echo "Please use \`make <target>' where <target> is one of:"
	@echo "  create-migration   to update the database schema with the" \
	      			"latest model changes"
	@echo "  runserver          to run the django web server"
	@echo "  test               to run the unit tests"

create-migration: syncdb
	python dashboard/manage.py schemamigration frontend --auto || \
			echo "No changes to frontend models."
	python dashboard/manage.py schemamigration jenkinsserver --auto || \
			echo "No changes to jenkins models."
	python dashboard/manage.py schemamigration android_build --auto || \
			echo "No changes to android_build models."
	python dashboard/manage.py schemamigration kernel_build --auto || \
			echo "No changes to kernel_build models."
	python dashboard/manage.py schemamigration integration_loop --auto || \
			echo "No changes to integration_loop models."
	python dashboard/manage.py migrate

migrate: syncdb
	python dashboard/manage.py migrate

runserver: migrate
	python dashboard/manage.py runserver

syncdb:
	python dashboard/manage.py syncdb

test:
	python dashboard/manage.py jenkins start
	python dashboard/manage.py test frontend android_build jenkinsserver

.PHONY: help migration test