~milo/linaro-ci-dashboard/xml-to-dict

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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Linaro CI Dashboard
===================
This is a Linaro CI Dashboard web tool used for integration of CI Loops and
various build processes.

Dependencies
------------

You need the following packages to be installed to run the app locally.

  python-django
  python-django-openid-auth
  python-django-south
  python-jenkins
  python-setuptools
  python-dev
  build-essential
  openjdk-6-jre-headless

Running the application
-----------------------

  $ make runserver

Other commands useful for development
---------------------------------------
To experiment with jenkins for development activities use the
command below to run jenkins locally
  $ python dashboard/manage.py jenkins start

To stop the running jenkins use the command below:
  $ python dashboard/manage.py jenkins stop <jenkins pid>

To sync the jenkins and CI Loop builds run:
  $ python dashboard/manage.py jenkins sync

PS: Please go through the settings.py JENKINS_* params to change
jenkins related configurations


Database migration with South
-----------------------------

We now provide database migrations with django south. All of the migrations
files are stored in each app directories (i.e. frontend/migrations).
Whenever any of the models are changed, it is strongly advised to run
South' schemamigration command:

  $ make migrate


Tests
-----

Dependencies
............

Additionally, you need the following to be able to run the tests.

  python-mock

  $ python dashboard/manager.py install_configure jenkins

To run all tests:

  $ python dashboard/manage.py test

To run only tests for the frontend application within the CI Dashboard
tool run:

  $ python dashboard/manage.py test frontend