update travis for pytorch
@@ -3,8 +3,20 @@ python:
- "3.7"
# command to install dependencies
install:
- - pip install -r requirements.txt
- - pip install .
+ - sudo apt-get update
+ - 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
+ - conda env create -f environment.yml
+ # - conda create -q -n environment.yml -c pytorch python=$TRAVIS_PYTHON_VERSION numpy mock pytorch-cpu
+ - conda info --envs
+ - source activate braindecode
+ - pip install --upgrade pytest
# command to run tests
script:
- pytest
