Revision 6940515d

b/README.ci
6 6
must be replicated. Also, the correct configuration file must be copied
7 7
(line 5 of the build script).
8 8

  
9
1. Install and start Jenkins. On Debian:
9
1. Install and start Jenkins. On Debian Squeeze:
10 10

  
11
   wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
11
   wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
12 12
   echo "deb http://pkg.jenkins-ci.org/debian binary/" >>/etc/apt/sources.list
13
   echo "deb http://ppa.launchpad.net/chris-lea/zeromq/ubuntu lucid main" >> /etc/apt/sources.list
14
   sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C7917B12  
13 15
   sudo apt-get update
14 16
   sudo apt-get install jenkins
15 17

  
......
17 19

  
18 20
   apt-get install python-virtualenv libcurl3-gnutls libcurl3-gnutls-dev
19 21
                   uuid-dev libmysqlclient-dev libpq-dev libsqlite-dev
20
                   python-dev
22
                   python-dev libzmq-dev
21 23

  
22 24
2. After Jenkins starts, go to
23 25

  
......
53 55
-Repository browser: redmineweb,
54 56
                     URL: https://code.grnet.gr/projects/synnefo/repository/
55 57
-Build Triggers->Poll SCM: check
56
                 Schedule: # every ten minutes
57
                           0,10,20,30,40,50 * * * *
58
                 Schedule: # every five minutes
59
			   0,5,10,15,20,25,30,35,40,45,50,55 * * * * 
58 60

  
59 61
-Build -> Add build step-> Execute shell
60 62

  
......
66 68
/usr/bin/sloccount --duplicates --wide --details api util ui logic auth > reports/sloccount.sc
67 69
cp conf/ci/manage.py .
68 70
if [ ! -e requirements.pip ]; then cp conf/ci/pip-1.2.conf requirements.pip; fi
69
cp conf/ci/settings.py.sqlite settings.py
71
cat settings.py.dist conf/ci/settings.py.sqlite > settings.py
70 72
python manage.py update_ve
71
python manage.py hudson api db logic
73
python manage.py hudson api db logic 
72 74

  
73 75
-Post-build Actions->Publish JUnit test result report: check
74 76
                     Test report XMLs: synnefo/reports/TEST-*.xml
......
82 84
-Post-build Actions->Publish SLOCCount analysis results
83 85
                     SLOCCount reports: synnefo/reports/sloccount.sc
84 86
                     (also, remember to install sloccount at /usr/bin)
85

  
86

  
87 87
---------------
88 88
See also:
89 89

  

Also available in: Unified diff