forked from haotian-wang/viewpoint-estimation
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
81 lines (80 loc) · 1.6 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: python
matrix:
include:
- env:
- PYTHON=2.7
- PYTORCH=0.3.0
- env:
- PYTHON=2.7
- PYTORCH=0.3.1
- env:
- PYTHON=2.7
- PYTORCH=0.4.0
- env:
- PYTHON=2.7
- PYTORCH=0.4.1
- env:
- PYTHON=2.7
- PYTORCH=1.0.0
- env:
- PYTHON=3.5
- PYTORCH=0.3.0
- env:
- PYTHON=3.5
- PYTORCH=0.3.1
- env:
- PYTHON=3.5
- PYTORCH=0.4.0
- env:
- PYTHON=3.5
- PYTORCH=0.4.1
- env:
- PYTHON=3.5
- PYTORCH=1.0.0
- env:
- PYTHON=3.6
- PYTORCH=0.3.0
- env:
- PYTHON=3.6
- PYTORCH=0.3.1
- env:
- PYTHON=3.6
- PYTORCH=0.4.0
- env:
- PYTHON=3.6
- PYTORCH=0.4.1
- env:
- PYTHON=3.6
- PYTORCH=1.0.0
- env:
- PYTHON=3.7
- PYTORCH=0.3.0
- env:
- PYTHON=3.7
- PYTORCH=0.3.1
- env:
- PYTHON=3.7
- PYTORCH=0.4.0
- env:
- PYTHON=3.7
- PYTORCH=0.4.1
- env:
- PYTHON=3.7
- PYTORCH=1.0.0
install:
- 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
- conda create -y -q -n pytorch python=$PYTHON
- source activate pytorch
- if [[ "$PYTORCH" == "0.3.0" || "$PYTORCH" == "0.3.1" ]]; then
conda install -y pytorch=$PYTORCH torchvision cuda90 -c pytorch;
else
conda install -y pytorch-cpu=$PYTORCH torchvision-cpu -c pytorch;
fi
- conda install -y numpy matplotlib tqdm pillow scikit-learn cython pytest
- pip install torchvision codecov
script:
- coverage run test/test_network.py
after_success:
- codecov