File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 8
8
- " 3.5"
9
9
- " 3.6"
10
10
# command to install dependencies
11
- install : " pip install -r requirements.txt"
11
+ install :
12
+ # Install conda.
13
+ - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
14
+ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
15
+ else
16
+ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
17
+ fi
18
+ - bash miniconda.sh -b -p $HOME/miniconda
19
+ - export OPATH="$PATH" && export PATH="$HOME/miniconda/bin:$PATH"
20
+ - conda create -q -y -n test-environment python=$TRAVIS_PYTHON_VERSION pytest
21
+ - source activate test-environment
22
+ # Attempt to install torchvision; on failure, revert back to pre-conda environment.
23
+ - conda install -q -y torchvision -c soumith || export PATH="$OPATH"
24
+ - pip install -r requirements.txt
12
25
# command to run tests
13
- script : py.test -v
26
+ script : py.test -v
You can’t perform that action at this time.
0 commit comments