.travis.yml 2.1 KB

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