~psivaa/uci-engine/lander-jenkins-with-proxy

« back to all changes in this revision

Viewing changes to README

  • Committer: Tarmac
  • Author(s): Andy Doan
  • Date: 2013-12-06 23:25:38 UTC
  • mfrom: (6.1.22 ppa-assigner)
  • Revision ID: tarmac-20131206232538-auo3c8yhml7wbnee
[r=Francis Ginther] adds first pass of ppa-assigner

more changes to come following design updates.  from Andy Doan

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Local Development
 
2
-----------------
 
3
 
 
4
Development environments can be set of using the setup.py files in the
 
5
projects you wish to work on. The easiest approach is to use python-virtualenv.
 
6
Since most projects require the ci-utils project, that should almost always
 
7
get setup first::
 
8
 
 
9
  # setup the ppa-assigner project
 
10
  virtualenv /tmp/venv
 
11
  . /tmp/venv/bin/activate
 
12
  ./ci-utils/setup.py develop
 
13
  ./ppa-assigner/setup.py develop
 
14
 
 
15
  # setup for sqlite3 (easiest way)
 
16
  cp ppa-assigner/local_settings.py.example ppa-assigner/local_settings.py
 
17
 
 
18
  # setup for postgres
 
19
  sudo ./ppa-assigner/setup.py create_db
 
20
 
 
21
Unit-testing can be done with::
 
22
 
 
23
  ./ppa-assigner/manage.py test  # this tests everything (including django)
 
24
  ./ppa-assigner/manage.py test ppa_assigner # just test the project
 
25
  ./ppa-assigner/manage.py test ppa_assigner.TestApi #test one class
 
26
  ./ppa-assigner/manage.py test ppa_assigner.TestApi.testFree # test one method
 
27
 
 
28
 
 
29
Juju Testing
 
30
------------
 
31
 
 
32
Each service should include a juju-deployer config under the juju-deployer
 
33
directory.