diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2f58c58db40a4b763ed03f77a787497d52e2ecee..fa496e6071d0658a39c67951d464a7bf5c0b069a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,11 @@ -python-unit-tests: - script: - - pwd - - nosetests --with-coverage --cover-html +image: python:3.6-jessie + +unit-tests: stage: test + script: + - python -m pip install pipenv + - pipenv install --dev + - pipenv run nosetests --with-coverage --cover-html artifacts: paths: - cover/ diff --git a/Config.py b/Config.py index 6158d02af5b571ca50c06adc01ec08df5ee96979..033db00713055591629e91f7a7c1b4212dc78ce8 100644 --- a/Config.py +++ b/Config.py @@ -1,10 +1,10 @@ -import ConfigParser +import configparser import re class Config(object): def __init__(self, config_file='./config.ini'): - self.config = ConfigParser.ConfigParser() + self.config = configparser.ConfigParser() self.config.read(config_file) self.options = {} diff --git a/Pipfile b/Pipfile new file mode 100644 index 0000000000000000000000000000000000000000..c2037d80d7486f39f83367f11b3b15172e2af5eb --- /dev/null +++ b/Pipfile @@ -0,0 +1,13 @@ +[[source]] +url = "https://pypi.python.org/simple" +verify_ssl = true +name = "pypi" + +[dev-packages] +nose = "*" +coverage = "*" + +[packages] + +[requires] +python_version = "3.6" \ No newline at end of file