You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,37 @@
2
2
3
3
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.
4
4
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
+
5
36
## General Sections
6
37
7
38
### [es_collection]
@@ -122,3 +153,4 @@ A complete list of studies parameters is available at:
0 commit comments