Revision 75aae73a README.ci
b/README.ci | ||
---|---|---|
2 | 2 |
----------------------------------- |
3 | 3 |
|
4 | 4 |
The following instructions will setup Jenkins to run synnefo tests with |
5 |
the SQLite database. To run the tests on MySQL and/or Postgres, step 4
|
|
5 |
the SQLite database. To run the tests on MySQL and/or Postgres, step 5
|
|
6 | 6 |
must be replicated. Also, the correct configuration file must be copied |
7 | 7 |
(line 5 of the build script). |
8 | 8 |
|
... | ... | |
13 | 13 |
sudo apt-get update |
14 | 14 |
sudo apt-get install jenkins |
15 | 15 |
|
16 |
Also install the following packages: |
|
17 |
|
|
18 |
apt-get install python-virtualenv libcurl3-gnutls libcurl3-gnutls-dev |
|
19 |
uuid-dev libmysqlclient-dev libpq-dev libsqlite-dev |
|
20 |
python-dev |
|
21 |
|
|
16 | 22 |
2. After Jenkins starts, go to |
17 | 23 |
|
18 | 24 |
http://$HOST:8080/pluginManager/ |
... | ... | |
25 | 31 |
-Jenkins SLOCCount Plug-in |
26 | 32 |
-Hudson/Jenkins Violations plugin |
27 | 33 |
|
28 |
3. Make sure that all system-level dependencies specified in README.develop |
|
34 |
3. Configure the Jenkins user's Git details: |
|
35 |
su jenkins |
|
36 |
git config --global user.email "buildbot@lists.grnet.gr" |
|
37 |
git config --global user.name "Buildbot" |
|
38 |
|
|
39 |
4. Make sure that all system-level dependencies specified in README.develop |
|
29 | 40 |
are correctly installed |
30 | 41 |
|
31 |
4. Create a new "free-style software" job and set the following values:
|
|
42 |
5. Create a new "free-style software" job and set the following values:
|
|
32 | 43 |
|
33 | 44 |
-Project name: synnefo |
34 | 45 |
-Source Code Management: Git |
... | ... | |
43 | 54 |
URL: https://code.grnet.gr/projects/synnefo/repository/ |
44 | 55 |
-Build Triggers->Poll SCM: check |
45 | 56 |
Schedule: # every ten minutes |
46 |
10 * * * *
|
|
57 |
0,10,20,30,40,50 * * * *
|
|
47 | 58 |
|
48 | 59 |
-Build -> Add build step-> Execute shell |
49 | 60 |
|
... | ... | |
51 | 62 |
|
52 | 63 |
#!/bin/bash -ex |
53 | 64 |
cd synnefo |
65 |
mkdir -p reports |
|
54 | 66 |
/usr/bin/sloccount --duplicates --wide --details api util ui logic auth > reports/sloccount.sc |
55 | 67 |
cp conf/ci/manage.py . |
56 | 68 |
if [ ! -e requirements.pip ]; then cp conf/ci/pip-1.2.conf requirements.pip; fi |
Also available in: Unified diff