-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (33 loc) · 1.02 KB
/
.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
32
33
34
35
36
37
38
language: minimal
os:
- linux
- osx
env:
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.1
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.2
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.1
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.2
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
MINICONDA_OS=Linux;
sudo apt-get update;
else
MINICONDA_OS=MacOSX;
brew update;
fi
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-${MINICONDA_OS}-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
# Useful for debugging any issues with conda
- conda info -a
- conda search pytorch || true
- conda create -q -n test-environment python=${PYTHON_VERSION} pytorch=${PYTORCH_VERSION}
- conda activate test-environment
- pip install -r requirements.txt
script:
- python -c "import torch; print(torch.__version__)"
- ./main.py