-
Notifications
You must be signed in to change notification settings - Fork 87
/
.travis.yml
31 lines (26 loc) · 864 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: python
python:
- "3.6"
- "3.7"
cache: pip
env:
- TORCH_VERSION=1.5.0 TORCHVISION_VERSION=0.6.0
- TORCH_VERSION=0.4.1 TORCHVISION_VERSION=0.6.0
install:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda env create -f environment.ci.yml -q python=$TRAVIS_PYTHON_VERSION
- conda activate flashtorch-ci
- conda install nbconvert
- pip install --upgrade torch==$TORCH_VERSION
- pip install --upgrade torchvision==$TORCHVISION_VERSION
- python setup.py install
script:
- flake8 flashtorch tests
- pytest