Skip to content

Commit

Permalink
[doc] Include example for GitLab
Browse files Browse the repository at this point in the history
This code updates the README.md and includes an example of
GitLab within the tests/test.cfg file and tests/test-projects.json.
  • Loading branch information
valeriocos authored and Alvaro del Castillo committed Jul 19, 2018
1 parent ef6315f commit 807ba68
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SirMordred 0.1.38 [![Build Status](https://travis-ci.org/grimoirelab/mordred.svg?branch=master)](https://travis-ci.org/grimoirelab/mordred)[![Coverage Status](https://coveralls.io/repos/github/chaoss/grimoirelab-sirmordred/badge.svg?branch=master)](https://coveralls.io/github/chaoss/grimoirelab-sirmordred?branch=master)

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.

## General Sections
Expand Down
3 changes: 3 additions & 0 deletions tests/test-projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"https://github.com/VizGrimoire/GrimoireLib --filters-raw-prefix data.files.file:grimoirelib_alch data.files.file:README.md",
"https://github.com/MetricsGrimoire/CMetrics"
],
"gitlab": [
"https://gitlab.com/inkscape/inkscape-web"
],
"github": [
"https://github.com/grimoirelab/perceval"
],
Expand Down
8 changes: 7 additions & 1 deletion tests/test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ archive-path = /tmp/test_github_archive
category = pull_request
sleep-time = 300

[gitlab]
raw_index = test_gitlab-raw
enriched_index = test_gitlab
api-token = xxxx
no-archive = true

[google_hits]
# logstash
collect = false
Expand Down Expand Up @@ -232,7 +238,7 @@ enriched_index = telegram_test
api-token = XXXXX

[twitter]
# logstash
collect = false
raw_index = twitter_test-raw
enriched_index = twitter_test
api-token = XXXX
4 changes: 2 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_init(self):
self.assertIsNotNone(config.conf)
self.assertIsNone(config.raw_conf)
self.assertEqual(config.conf_list, [CONF_FULL])
self.assertEqual(len(config.conf.keys()), 42)
self.assertEqual(len(config.conf.keys()), 43)

def test_init_studies(self):
"""Test whether studies' attributes are initializated"""
Expand Down Expand Up @@ -123,7 +123,7 @@ def test_get_data_sources(self):
config = Config(CONF_FULL)

expected = ['askbot', 'bugzilla', 'bugzillarest', 'confluence', 'discourse', 'dockerhub', 'functest',
'gerrit', 'git', 'github', 'google_hits', 'hyperkitty', 'jenkins', 'jira', 'mbox', 'meetup',
'gerrit', 'git', 'gitlab', 'github', 'google_hits', 'hyperkitty', 'jenkins', 'jira', 'mbox', 'meetup',
'mediawiki', 'mozillaclub', 'nntp', 'phabricator', 'pipermail', 'redmine', 'remo', 'rss',
'stackexchange', 'slack', 'supybot', 'telegram', 'twitter']
data_sources = config.get_data_sources()
Expand Down

0 comments on commit 807ba68

Please sign in to comment.