forked from pytorchbearer/torchbearer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (62 loc) · 3.49 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
language: python
matrix:
include:
- python: "2.7"
env: TORCH_VERSION=0.4.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-0.4.0-cp27-cp27mu-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3
- python: "2.7"
env: TORCH_VERSION=0.4.1 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3
- 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
- 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
- python: "3.5"
env: TORCH_VERSION=0.4.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-0.4.0-cp35-cp35m-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3
- python: "3.5"
env: TORCH_VERSION=0.4.1 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3
- 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
- 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
- python: "3.6"
env: TORCH_VERSION=0.4.0 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-0.4.0-cp36-cp36m-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3
- python: "3.6"
env: TORCH_VERSION=0.4.1 TORCH_URL=http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl TORCHVISION=torchvision==0.2.2.post3
- 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
- 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
- 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
- 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
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 -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