.travis.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. sudo: false
  2. cache: pip
  3. matrix:
  4. include:
  5. - os: linux
  6. dist: trusty
  7. language: python
  8. env:
  9. - SYSTEM_PYTHON=/usr/bin/python
  10. - PIP=pip
  11. - PYTHON=python
  12. addons:
  13. apt:
  14. packages:
  15. - gfortran
  16. - liblapack-dev
  17. - pyqt4-dev-tools
  18. - python-qt4
  19. before_install:
  20. - cp -r $(dirname $($SYSTEM_PYTHON -c 'import PyQt4; print(PyQt4.__file__)')) ~/virtualenv/python2.7/lib/python2.7/site-packages/
  21. - cp $($SYSTEM_PYTHON -c 'import sip; print(sip.__file__)') ~/virtualenv/python2.7/lib/python2.7/site-packages/
  22. - os: osx
  23. osx_image: xcode9
  24. language: generic
  25. env:
  26. - PYTHON_VERSION=2.7.10
  27. - PYENV_ROOT=~/.pyenv
  28. - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
  29. before_install:
  30. - brew update >/dev/null
  31. - brew outdated pyenv || brew upgrade --quiet pyenv
  32. - PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install -ks $PYTHON_VERSION
  33. - pyenv global $PYTHON_VERSION
  34. - python --version
  35. # Install PyQt5
  36. - brew install pyqt
  37. - cp -r /usr/local/lib/python2.7/site-packages/PyQt5 ~/.pyenv/versions/2.7.10/lib/python2.7/site-packages/
  38. - cp /usr/local/lib/python2.7/site-packages/sip.so ~/.pyenv/versions/2.7.10/lib/python2.7/site-packages/
  39. # for matplotlib
  40. - mkdir -p ~/.matplotlib
  41. - echo "backend':' Agg" > ~/.matplotlib/matplotlibrc
  42. install:
  43. - pip install -U pip setuptools
  44. # Install scikit-image
  45. - pip install -U numpy
  46. - pip install -U scipy
  47. - pip install -U scikit-image
  48. - python setup.py install
  49. before_script:
  50. - pip install nose
  51. script:
  52. - nosetests tests