-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy path.travis.yml
85 lines (82 loc) · 5.63 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
82
83
84
85
language: python
matrix:
include:
- python: "2.7"
env: TORCH_VERSION=1.0.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.0.0-cp27-cp27mu-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3 PILLOW=pillow
- python: "2.7"
env: TORCH_VERSION=1.1.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.1.0-cp27-cp27mu-linux_x86_64.whl TORCHVISION=https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp27-cp27mu-linux_x86_64.whl PILLOW=pillow
- python: "2.7"
env: TORCH_VERSION=1.2.0 TORCH_URL="torch==1.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW=pillow
- python: "2.7"
env: TORCH_VERSION=1.3.0 TORCH_URL="torch==1.3.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.4.1+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW=pillow
- python: "2.7"
env: TORCH_VERSION=1.4.0 TORCH_URL="torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW=pillow
- python: "3.5"
env: TORCH_VERSION=1.0.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.0.0-cp35-cp35m-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3 PILLOW="pillow<7.0.0"
- python: "3.5"
env: TORCH_VERSION=1.1.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.1.0-cp35-cp35m-linux_x86_64.whl TORCHVISION=https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp35-cp35m-linux_x86_64.whl PILLOW="pillow<7.0.0"
- python: "3.5"
env: TORCH_VERSION=1.2.0 TORCH_URL="torch==1.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW="pillow<7.0.0"
- python: "3.5"
env: TORCH_VERSION=1.3.0 TORCH_URL="torch==1.3.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.4.1+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW="pillow<7.0.0"
- python: "3.5"
env: TORCH_VERSION=1.4.0 TORCH_URL="torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW=pillow
- python: "3.6"
env: TORCH_VERSION=1.0.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.0.0-cp36-cp36m-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3 PILLOW="pillow<7.0.0"
- python: "3.6"
env: TORCH_VERSION=1.1.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl TORCHVISION=https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp36-cp36m-linux_x86_64.whl PILLOW="pillow<7.0.0"
- python: "3.6"
env: TORCH_VERSION=1.2.0 TORCH_URL="torch==1.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW="pillow<7.0.0"
- python: "3.6"
env: TORCH_VERSION=1.3.0 TORCH_URL="torch==1.3.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.4.1+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW="pillow<7.0.0"
- python: "3.6"
env: TORCH_VERSION=1.4.0 TORCH_URL="torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW=pillow
- python: "3.7"
dist: xenial
sudo: true
env: TORCH_VERSION=1.0.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.0.0-cp37-cp37m-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3 PILLOW="pillow<7.0.0"
- python: "3.7"
dist: xenial
sudo: true
env: TORCH_VERSION=1.1.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-1.1.0-cp37-cp37m-linux_x86_64.whl TORCHVISION=https://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp37-cp37m-linux_x86_64.whl PILLOW="pillow<7.0.0"
- python: "3.7"
dist: xenial
sudo: true
env: TORCH_VERSION=1.2.0 TORCH_URL="torch==1.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW="pillow<7.0.0"
- python: "3.7"
dist: xenial
sudo: true
env: TORCH_VERSION=1.3.0 TORCH_URL="torch==1.3.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.4.1+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW="pillow<7.0.0"
- python: "3.7"
dist: xenial
sudo: true
env: TORCH_VERSION=1.4.0 TORCH_URL="torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" TORCHVISION="torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html" PILLOW=pillow
before_install:
- echo $TRAVIS_COMMIT_RANGE
- |
if [ -z "$TRAVIS_COMMIT_RANGE"]; then COMMIT_RANGE="HEAD~..HEAD"; else COMMIT_RANGE=$TRAVIS_COMMIT_RANGE; fi;
- echo $COMMIT_RANGE
- |
if ! git diff --name-only $COMMIT_RANGE | grep -qE '^(torchbearer/|tests/|.travis.yml)'
then
echo "Only docs were updated, not running the CI."
exit
fi
# command to install dependencies
install:
- pip install -q coverage
- pip install -q $TORCH_URL
- pip install future
- pip install $PILLOW
- pip install -q $TORCHVISION
- pip install -q -r requirements.txt
# command to run tests
script:
- nosetests tests -v --with-coverage --cover-package=torchbearer
after_success:
- bash <(curl -s https://codecov.io/bash)
cache: pip
notifications:
email:
on_success: never
on_failure: always