Author: | Pierre-Yves Chibon <pingou@pingoured.fr> |
---|
RATS is the Run Another Test Service
, an application aimed to be an API
used by consumers (such as Bodhi or Pagure) to ask for a certain test to be
re-run by the test system (that will need to listen to this rats' messages).
Homepage: https://pagure.io/rats
Install the needed system libraries:
sudo dnf install git python2-virtualenv
Note
On Fedora 23 and earlier or on RHEL and derivative (CentOS, Scientific Linux) the package python2-virtualenv is named python-virtualenv
Retrieve the sources:
git clone https://pagure.io/rats.git cd rats
Install dependencies
create the virtualenv:
virtualenv rats_env source ./rats_env/bin/activate
Install the dependencies:
pip install -r requirements.txt
Run the webserver:
./runserver.py
To get some profiling information you can also run it as:
./runserver.py --profile
This will launch the application at http://127.0.0.1:5000
Run the worker:
celery worker -A rats.lib.tasks
To run unit-tests:
Install the dependencies:
pip install -r test-requirements.txt
Run it:
nosetests