-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
88 lines (75 loc) · 2.7 KB
/
README
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
* README
*
* Copyright 2012 Chaitanya Talnikar <chaitukca@gmail.com>
*
*/
Welcome to the biographer simulator.
The simulator uses a Makefile to manage the project. make by default
executes the directive 'all' which consists of 'lint', 'doc', 'test' and
'pkg'.
The simulator source code does not consist of any external libraries
by default and they have to be fetched and installed.
Build libs:
1. If you are using Ubuntu, install necessary dependences to test and
build the software by typing in the terminal:
make deps
Otherwise please refer below for a list of dependencies:
#required to build bui
nodejs
npm
node-uglify
#required to build libSBGN.js
ant
git-core(git)
#required for creating documentation
jsdoc-toolkit(jsdoc)
#required for the offline app
libqtwebkit4
python-qt4
#required for lint code check
jshint
#required for unit testing
selenium python api
chromedriver(selenium webdriver)
2. Fetch and build the libs by executing the command:
make libs
The above commands adds the following libs:
biographer-ui
d3.js
libSBGN.js
3. To support SBML files in the simulator the biographer server needs to
be setup. Please read the README in the server folder.
4. For testing purposes if you are using Chrome you need to download the
Chrome WebDriver available at the following url:
http://code.google.com/p/chromedriver/downloads/list
Download the linux zip depending on your architechture and install it using
the commands:
tar -xvf chromedriver*.zip
sudo cp chromedriver /usr/bin
Now once you have the necessary libs you are ready to test the simulator or
create a deployable package.
Offline App(browse):
To test the application offline(no SBML support) using the qt webkit engine. Run:
make browse
Testing(test):
To run all the tests for the simulator, run:
make test
This executes all the tests including the file import/export, SBML server
tests and the Simulate, Analyse and Plot features using the selenium
browser testing framework along with python's unittest.
To run specific tests take a look at the main.py file in the tests directory.
The default browser is Chrome and the default URL is the localhost web2py
server. To change these settings modify the simulator.py file.
Packaging(pkg):
To create a package which can be easily deployed on a server execute:
make pkg
A zip file simulator.zip will be created in the root directory.
The following tasks don't really require the libs.
Code checking(lint):
To perform jshint on the js files execute:
make lint
Documentation(doc):
To generate documentation using jsdoc execute:
make doc
The docs will reside in the jsdoc directory.