Commit ba480dde authored by Georgios Gousios's avatar Georgios Gousios
Browse files

Instructions on how to install a remote 0mq apt repo

parent 22183f21
......@@ -6,10 +6,12 @@ the SQLite database. To run the tests on MySQL and/or Postgres, step 5
must be replicated. Also, the correct configuration file must be copied
(line 5 of the build script).
1. Install and start Jenkins. On Debian:
1. Install and start Jenkins. On Debian Squeeze:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
echo "deb http://pkg.jenkins-ci.org/debian binary/" >>/etc/apt/sources.list
echo "deb http://ppa.launchpad.net/chris-lea/zeromq/ubuntu lucid main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C7917B12
sudo apt-get update
sudo apt-get install jenkins
......@@ -17,7 +19,7 @@ must be replicated. Also, the correct configuration file must be copied
apt-get install python-virtualenv libcurl3-gnutls libcurl3-gnutls-dev
uuid-dev libmysqlclient-dev libpq-dev libsqlite-dev
python-dev
python-dev libzmq-dev
2. After Jenkins starts, go to
......@@ -53,8 +55,8 @@ must be replicated. Also, the correct configuration file must be copied
-Repository browser: redmineweb,
URL: https://code.grnet.gr/projects/synnefo/repository/
-Build Triggers->Poll SCM: check
Schedule: # every ten minutes
0,10,20,30,40,50 * * * *
Schedule: # every five minutes
0,5,10,15,20,25,30,35,40,45,50,55 * * * *
-Build -> Add build step-> Execute shell
......@@ -66,9 +68,9 @@ mkdir -p reports
/usr/bin/sloccount --duplicates --wide --details api util ui logic auth > reports/sloccount.sc
cp conf/ci/manage.py .
if [ ! -e requirements.pip ]; then cp conf/ci/pip-1.2.conf requirements.pip; fi
cp conf/ci/settings.py.sqlite settings.py
cat settings.py.dist conf/ci/settings.py.sqlite > settings.py
python manage.py update_ve
python manage.py hudson api db logic
python manage.py hudson api db logic
-Post-build Actions->Publish JUnit test result report: check
Test report XMLs: synnefo/reports/TEST-*.xml
......@@ -82,8 +84,6 @@ python manage.py hudson api db logic
-Post-build Actions->Publish SLOCCount analysis results
SLOCCount reports: synnefo/reports/sloccount.sc
(also, remember to install sloccount at /usr/bin)
---------------
See also:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment