sudo: false

language: python

matrix:
  include:
    - os: linux
      python: '2.7'
    - os: linux
      python: '3.6'

branches:
  only:
    - master

before_install:
  -  lsb_release -a

install:
  - pip install packaging
  - git checkout "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
  - git reset --hard "${TRAVIS_COMMIT}"
  - python setup.py install

script:
  - py.test

sudo: false

language: python

matrix:
  include:
    - os: linux
      python: '2.7'
    - os: linux
      python: '3.6'

branches:
  only:
    - master

before_install:
  -  lsb_release -a

install:
  - pip install packaging scipy numba
  - git checkout "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
  - git reset --hard "${TRAVIS_COMMIT}"
  - python setup.py install

script:
  - py.test

Install scipy when testing on Travis-CI
Install scipy when testing on Travis-CI
