Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (34 sloc) 1.04 KB
language: python
dist: xenial
python:
- "3.7"
- "3.6"
- "3.5"
env:
- PYTORCH_VERSION="1.0.0"
cache:
apt: true
pip: true
timeout: 1000
directories:
- $HOME/cache
before_cache:
- find ${HOME}/conda/pkgs/ -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \;
install:
- sudo apt-get update
- mkdir -p ${HOME}/cache/pkgs
- "[ ! -f ${HOME}/cache/miniconda.sh ] && wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ${HOME}/cache/miniconda.sh || :"
- bash ${HOME}/cache/miniconda.sh -b -p ${HOME}/conda && export PATH=${HOME}/conda/bin:$PATH
- rm -rf ${HOME}/conda/pkgs && ln -s ${HOME}/cache/pkgs ${HOME}/conda/pkgs
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -y -n skorch-env python=${TRAVIS_PYTHON_VERSION}
- source activate skorch-env
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- python setup.py install
- conda install -c pytorch pytorch-cpu==${PYTORCH_VERSION}
script:
- pytest
You can’t perform that action at this time.