language: python

python:
  - "2.7"
  - "3.5"
# command to install dependencies
install:
  - pip install --quiet -r requirements.txt
  - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip --quiet install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl; fi
  - if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip3 --quiet install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl; fi
  - pip install --quiet torchvision

# command to run tests
script:
  - pytest

language: python

python:
  - "2.7"
  - "3.5"

# command to install dependencies
install:
  - pip install --quiet -r requirements.txt
  - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip --quiet install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl; fi
  - if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip3 --quiet install http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl; fi
  - pip install --quiet torchvision

# command to run tests
script:
  - python setup.py bdist_wheel --universal
  - pip install dist/*
  - pytest

Build pip package during tests
Build pip package during tests
