.travis.yml 1.22 KB
Newer Older
1
language: python
2 3 4 5
branches:
  only:
    - master
    - testing
6
python:
7 8 9
#  - "pypy"
#  - "pypy3"
#  - "2.6"
10
  - "2.7"
11 12 13 14 15
  - "2.7_with_system_site_packages"
  - "3.2"
  - "3.2_with_system_site_packages"
  - "3.3"
  - "3.4"
16
before_install:
17
  - sudo apt-get update -qq
18
  - sudo apt-get install -qq gcc liblapack-dev libatlas-base-dev libgsl0-dev fftw-dev libglpk-dev libdsdp-dev
19
  - if [[ $TRAVIS_PYTHON_VERSION != *"with_system_site_packages" ]]; then sudo apt-get install -qq gfortran; fi
20 21
  - if [[ $TRAVIS_PYTHON_VERSION == "2.7_with_system_site_packages" ]]; then sudo apt-get install -qq python-numpy python-scipy; fi
  - if [[ $TRAVIS_PYTHON_VERSION == "3.2_with_system_site_packages" ]]; then sudo apt-get install -qq python3-numpy python3-scipy; fi
22 23
  - echo -e "[report]\nomit =\n    */python?.?/*\n    */site-packages/nose/*" > .coveragerc
  - pip install coveralls
24
install:
25 26
  - if [[ $TRAVIS_PYTHON_VERSION != *"with_system_site_packages" ]]; then pip install --upgrade "file://$PWD#egg=pymdptoolbox[LP]"; fi
  - if [[ $TRAVIS_PYTHON_VERSION == *"with_system_site_packages" ]]; then pip install "file://$PWD#egg=pymdptoolbox[LP]"; fi
27
# command to run tests
28 29 30 31
script:
  nosetests --with-coverage --cover-package=mdptoolbox
after_success:
  coveralls