.travis.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. language: python
  2. python:
  3. - 3.5
  4. - 3.6
  5. - 3.7
  6. - 3.8
  7. - 3.8-dev
  8. # required for python >= 3.7
  9. dist: xenial
  10. env:
  11. # https://pypi.org/project/pandas/#history
  12. - PANDAS_VERSION=
  13. - PANDAS_VERSION=1.*
  14. - PANDAS_VERSION=0.25.*
  15. - PANDAS_VERSION=0.24.*
  16. - PANDAS_VERSION=0.23.*
  17. - PANDAS_VERSION=0.22.*
  18. - PANDAS_VERSION=0.21.*
  19. # https://travis-ci.org/fphammerle/freesurfer-volume-reader/builds/525556257
  20. matrix:
  21. exclude:
  22. # https://travis-ci.org/github/fphammerle/freesurfer-stats/jobs/683777317#L208
  23. # https://github.com/pandas-dev/pandas/commit/18efcb27361478daa3118079ecb166c733691ecb#diff-2eeaed663bd0d25b7e608891384b7298R814
  24. - python: 3.5
  25. env: PANDAS_VERSION=1.*
  26. - python: 3.7
  27. env: PANDAS_VERSION=0.21.*
  28. - python: 3.7
  29. env: PANDAS_VERSION=0.22.*
  30. # >/tmp/pip-install-g4jx0np4/numpy/_configtest.c:6: undefined reference to `exp'
  31. # https://travis-ci.org/github/fphammerle/freesurfer-stats/jobs/683704331#L437
  32. - python: 3.8
  33. env: PANDAS_VERSION=0.21.*
  34. # https://travis-ci.org/github/fphammerle/freesurfer-stats/jobs/683704330#L437
  35. - python: 3.8
  36. env: PANDAS_VERSION=0.22.*
  37. - python: 3.8-dev
  38. env: PANDAS_VERSION=0.21.*
  39. - python: 3.8-dev
  40. env: PANDAS_VERSION=0.22.*
  41. # no python3.8 wheels for pandas v0.24.2 & v0.23.4 available
  42. # https://travis-ci.org/github/fphammerle/freesurfer-stats/builds/701952350
  43. # build takes longer than 10min
  44. # https://travis-ci.org/github/fphammerle/freesurfer-stats/jobs/702077404#L199
  45. - python: 3.8
  46. env: PANDAS_VERSION=0.23.*
  47. - python: 3.8
  48. env: PANDAS_VERSION=0.24.*
  49. - python: 3.8-dev
  50. env: PANDAS_VERSION=0.23.*
  51. - python: 3.8-dev
  52. env: PANDAS_VERSION=0.24.*
  53. install:
  54. - pip install pipenv==2020.6.2
  55. - pipenv install --python "$TRAVIS_PYTHON_VERSION" --deploy --dev
  56. - if [ ! -z "$PANDAS_VERSION" ]; then
  57. pipenv install --selective-upgrade "pandas==$PANDAS_VERSION";
  58. fi
  59. - pipenv graph
  60. script:
  61. - pipenv run pylint freesurfer_volume_reader tests/*
  62. - pipenv run pytest --cov=freesurfer_volume_reader --cov-report=term-missing --cov-fail-under=100
  63. after_success:
  64. - pip install coveralls
  65. - coveralls