Browse Source

configure travis-ci: install, lint, test & report to coveralls

Fabian Peter Hammerle 5 years ago
parent
commit
cf68e70e63
1 changed files with 25 additions and 0 deletions
  1. 25 0
      .travis.yml

+ 25 - 0
.travis.yml

@@ -0,0 +1,25 @@
+language: python
+
+python:
+- 3.4
+- 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 freesurfer_surface tests/*
+- pipenv run pytest --cov=freesurfer_surface --cov-report=term-missing --cov-fail-under=100
+
+after_success:
+- pip install coveralls
+- coveralls