Browse Source

configure travis-ci: pipenv sync, pylint, pytest & report coverage to coveralls

Fabian Peter Hammerle 5 years ago
parent
commit
83b7919568
2 changed files with 27 additions and 0 deletions
  1. 3 0
      .pylintrc
  2. 24 0
      .travis.yml

+ 3 - 0
.pylintrc

@@ -0,0 +1,3 @@
+[MESSAGES CONTROL]
+
+disable=missing-docstring

+ 24 - 0
.travis.yml

@@ -0,0 +1,24 @@
+language: python
+
+python:
+- 3.5
+- 3.6
+- 3.6-dev
+- 3.7
+- 3.7-dev
+
+# required for python >= 3.7
+dist: xenial
+
+install:
+- pip install pipenv
+- pipenv sync --dev
+- pipenv graph
+
+script:
+- pipenv run pylint pubmed_bibtex tests/*
+- pipenv run pytest --cov=pubmed_bibtex --cov-report=term-missing --cov-fail-under=100
+
+after_success:
+- pip install coveralls
+- coveralls