forked from maciejmalycha/code_review
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME-dev
66 lines (57 loc) · 2.26 KB
/
README-dev
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
Preparing development environment for code_review:
1. Create new directory for development
mkdir Detektyw
2. Enter Detektyw directory and clone git repository
cd Detektyw
git clone ssh://<login>@pl-byd-srv01.emea.int.genesyslab.com:29418/PROTO/code_review
3. Enter code_review and execute 'make dev'
cd code_review
make dev
4. Create virtualenv environment
mkdir ~/.virtualenv
virtualenv --no-site-packages ~/.virtualenv/code_review
. ~/.virtualenv/code_review/activate
5. Download and install dependencies
pip install -r requirements.txt
6. Open new window, enter directory Detektyw/hgweb and start ./hgweb script
cd Detektyw/hgweb
./hgweb
7. In window with activated virtualenv create database and initialize repository
python db_create.py
python init_repo.py
8. Enter Detektyw and copy Detektyw/code_review/.hgrc.dev into Detektyw/repository/project_1/.hg/hgrc
cp code_review/.hgrc.dev repository/project_1/.hg/hgrc
9. Download jenkins.war version 1.535 and put it in Detektyw/jenkins directory. Download link:
http://mirrors.jenkins-ci.org/war/1.535/
10. Open new window, enter directory Detektyw/jenkins and start ./start-jenkins.sh
cd Detektyw/jenkins
./start-jenkins.sh
11. In window with activated virtualenv start Detektyw
python run.py
12. Open new window, enter directory Detektyw/work and clone repository
hg clone http://localhost:8000/project_1
Starting development environment
1. Open new window, enter directory hgweb, start ./hgweb script
2. Open new window, enter directory jenkins, start ./start-jenkins.sh script
3. Open new window, enter directory code_review, activate virtualenv and start Detektyw
. ~/.virtualenv/code_review/activate
python run.py
Executing basic test
1. Enter directory work/project_1
2. Checkout desired version of code and create new bookmark
hg update v2.0
hg bookmark iap-49
3. Modify the project and commit the changes
vim <some file>
hg commit -m "IAP-49: Test commit"
4. Push changes to hgweb
hg push -f -B iap-49
5. Go to Detektyw New page and click 'Refresh'
6. Click 'Start Review'
7. Click 'Run Jenkins build'
8. Click 'New inspection'
9. Click 'Merge'
Important links:
Detektyw - http://localhost:5000/
Jenkins - http://localhost:8110/ (username/password: jenkins/jenkins)
hgweb - http://localhost:8000/