瀏覽代碼

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

Fabian Peter Hammerle 6 年之前
父節點
當前提交
cf68e70e63
共有 1 個文件被更改,包括 25 次插入0 次删除
  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