External depedencies are Postgresql & R
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
Then, Edit the list of sources gksudo gedit /etc/apt/sources.list
and add the following repo at the bottom:deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu precise/
Finally, we can install R by running the following commands:
sudo apt-get update
sudo apt-get install r-base postgresql postgresql-contrib
Package requirements are handled using pip. To install them do
pip install -r requirements.txt
Testing is set up using pytest and coverage is handled with the pytest-cov plugin.
Run your tests with py.test
in the root directory.
Coverage is ran by default and is set in the pytest.ini
file.
To see an html output of coverage open htmlcov/index.html
after running the tests.
##Installation
- Clone this repository in to an empty directory
- Copy the
./config.example.json
to./config.json
and change the the configurations. All fields are required.
Db: information relating to your postgresql database setup logging: information about how to write logging information gmail: gmail account to be used to send cas notifications repoUpdates: how often repositories should be updated for new commits system: how many worker threads the cas system can use to analyze and ingest repos.
###First-Time Database Setup
Set up the database for the first time by running python script.py initDb
##Usage In a terminal, type `nohup python script.py & ' to start the code repo analyzer and run it in the background.