https://github.com/tensorly/tensorly
Revision 531a2e74e73c995a3ceae6d3cfeaf32965b4e78d authored by Jean Kossaifi on 14 September 2017, 15:39:30 UTC, committed by Jean Kossaifi on 14 September 2017, 22:27:09 UTC
1 parent 876ee8e
Raw File
Tip revision: 531a2e74e73c995a3ceae6d3cfeaf32965b4e78d authored by Jean Kossaifi on 14 September 2017, 15:39:30 UTC
TRAVIS: pdated build instructions
Tip revision: 531a2e7
.travis.yml
language: python

dist: trusty

python:
    - "3.5"
    - "3.6"

env:
    matrix:
        - BACKEND=numpy
        - BACKEND=mxnet
        - BACKEND=pytorch


install: 
    # Install miniconda
    - deactivate
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda update -q conda
    # Useful for debugging any issues with conda
    - conda info -a
    # Replace dep1 dep2 ... with your dependencies
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy
    - source activate test-environment
    - pip install coveralls pytest pytest-cov nose
    - if [[ "$BACKEND" == "mxnet" ]]; then
        pip install --pre mxnet;
      elif [[ "$BACKEND" == "pytorch" ]]; then
        conda install pytorch torchvision -c soumith;
      fi
    - pip install -e .

script:
    - travis_wait make BACKEND=$BACKEND test-coverage

after_success:
    - coveralls
back to top