Skip to content

Commit bfb1741

Browse files
committed
📝 document requirements and how to run the tests.
1 parent 27490ba commit bfb1741

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,37 @@
22

33
SirMordred is the tool used to coordinate the execution of the GrimoireLab platform, via a configuration file. Below you can find details about the different sections composing the configuration file.
44

5+
## Requirements
6+
7+
One good way of having an immediate sense of requirements is to look through our [`.travis.yml`](.travis.yml) file to see what our CI does to validate SirMordred.
8+
9+
1. Ensure you have all the [supporting systems](https://chaoss.github.io/grimoirelab-tutorial/basics/supporting.html) SirMordred needs
10+
2. Prepare and activate a `python3` virtualenv by following our [tutorial instructions](https://chaoss.github.io/grimoirelab-tutorial/basics/install.html#venvs).
11+
3. Install dependencies by following the steps in our [`.travis.yml file`](.travis.yml). At the time of this writing, those are:
12+
```sh
13+
pip install pandas==0.18.1
14+
pip install httpretty==0.8.6
15+
pip install -r "requirements.txt"
16+
pip install flake8
17+
pip install coveralls
18+
```
19+
20+
## Testing
21+
22+
To run the tests, you need an ElasticSearch+Kibana and MySQL server instances running. In particular:
23+
24+
1. Ensure [ElasticSearch is installed and running](https://chaoss.github.io/grimoirelab-tutorial/basics/supporting.html#installing-elasticsearch). [You can do this via a Docker image easily](https://chaoss.github.io/grimoirelab-tutorial/basics/supporting.html#installing-elasticsearch-and-kibana-from-a-docker-container): `docker run -d -p 9200:9200 -p 5601:5601 nshou/elasticsearch-kibana`
25+
2. Ensure a password-less MySQL instance is running. It's easy to do with
26+
Docker: `docker run -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql`
27+
28+
Once you have the above supporting systems running locally, you can lint the
29+
repo and run the tests via:
30+
31+
```sh
32+
flake8 .
33+
cd tests && ./runtests.py
34+
```
35+
536
## General Sections
637
738
### [es_collection]
@@ -122,3 +153,4 @@ A complete list of studies parameters is available at:
122153
* **study-param-1**: ..
123154
* **study-param-2**: ..
124155
* **study-param-n**: ..
156+

0 commit comments

Comments
 (0)