.travis.yml 6.01 KB
Newer Older
rusty1s's avatar
typo  
rusty1s committed
1
2
language: shell

rusty1s's avatar
rusty1s committed
3
os:
rusty1s's avatar
rusty1s committed
4
  - linux
rusty1s's avatar
test2  
rusty1s committed
5
6
  - osx
  - windows
rusty1s's avatar
rusty1s committed
7

rusty1s's avatar
matrix  
rusty1s committed
8
env:
rusty1s's avatar
rusty1s committed
9
  global:
rusty1s's avatar
update  
rusty1s committed
10
    - CUDA_HOME=/usr/local/cuda
rusty1s's avatar
rusty1s committed
11
  jobs:
12
    # Python 3.6
rusty1s's avatar
rusty1s committed
13
14
15
16
17
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cpu
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu92
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu101
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu102
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu110
18
19
20
21
22
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cpu
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu92
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu101
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu102
    # Python 3.7
rusty1s's avatar
rusty1s committed
23
24
25
26
27
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cpu
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu92
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu101
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu102
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu110
28
29
30
31
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cpu
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu92
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu101
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
32
    # Python 3.8
rusty1s's avatar
rusty1s committed
33
34
35
36
37
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cpu
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu92
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu101
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu102
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu110
rusty1s's avatar
rusty1s committed
38
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cpu
rusty1s's avatar
rusty1s committed
39
40
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu92
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu101
rusty1s's avatar
rusty1s committed
41
42
43
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu102

jobs:
rusty1s's avatar
rusty1s committed
44
  # For daily builds, we only test on Python 3.6 with CUDA 10.2/11.0.
45
  # For deployment, we exclude *all* macOS CUDA and Windows CUDA 9.2 jobs.
rusty1s's avatar
rusty1s committed
46
  exclude:
47
    # Python 3.6
rusty1s's avatar
rusty1s committed
48
49
50
51
52
53
54
55
56
57
    - if: not (tag is present or commit_message =~ ci-deploy) and os != osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cpu
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu92
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu101
    - if: os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu102
    - if: os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu110
rusty1s's avatar
rusty1s committed
58
    - if: not (tag is present or commit_message =~ ci-deploy) and os != osx
59
60
61
62
63
64
65
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cpu
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu92
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu101
    - if: os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
66
67
68
    # Python 3.7
    - if: not (tag is present or commit_message =~ ci-deploy)
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cpu
69
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
rusty1s's avatar
rusty1s committed
70
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu92
71
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
rusty1s committed
72
73
74
75
76
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu101
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu102
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu110
77
78
79
80
    - if: not (tag is present or commit_message =~ ci-deploy)
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cpu
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu92
rusty1s's avatar
rusty1s committed
81
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
82
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu101
rusty1s's avatar
rusty1s committed
83
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
84
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
85
    # Python 3.8
86
    - if: not (tag is present or commit_message =~ ci-deploy)
rusty1s's avatar
rusty1s committed
87
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cpu
88
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
rusty1s's avatar
rusty1s committed
89
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu92
rusty1s's avatar
rusty1s committed
90
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
rusty1s committed
91
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu101
rusty1s's avatar
rusty1s committed
92
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
rusty1s committed
93
94
95
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu102
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu110
96
    - if: not (tag is present or commit_message =~ ci-deploy)
rusty1s's avatar
rusty1s committed
97
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cpu
rusty1s's avatar
rusty1s committed
98
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
rusty1s's avatar
rusty1s committed
99
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu92
rusty1s's avatar
rusty1s committed
100
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
rusty1s committed
101
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu101
rusty1s's avatar
rusty1s committed
102
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
rusty1s committed
103
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
104

rusty1s's avatar
fix  
rusty1s committed
105
install:
rusty1s's avatar
rusty1s committed
106
  - source script/gcc.sh
rusty1s's avatar
oder  
rusty1s committed
107
  - source script/cuda.sh
rusty1s's avatar
rusty1s committed
108
  - source script/conda.sh
rusty1s's avatar
rusty1s committed
109
110
  - conda create --yes -n test python="${PYTHON_VERSION}"
  - source activate test
rusty1s's avatar
rusty1s committed
111
  - conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
rusty1s's avatar
rusty1s committed
112
  - source script/torch.sh
rusty1s's avatar
release  
rusty1s committed
113
114
  - pip install flake8
  - pip install codecov
rusty1s's avatar
update  
rusty1s committed
115
  - travis_wait 30 pip install -e .
rusty1s's avatar
typo  
rusty1s committed
116
script:
rusty1s's avatar
rusty1s committed
117
  - flake8 .
rusty1s's avatar
typo  
rusty1s committed
118
119
  - python setup.py test
after_success:
rusty1s's avatar
update  
rusty1s committed
120
121
  - python setup.py bdist_wheel --dist-dir=dist
  - ls -lah dist/
rusty1s's avatar
rusty1s committed
122
  - codecov
123
124
125
126
127
128
129
deploy:
  provider: s3
  region: eu-central-1
  edge: true
  access_key_id: ${S3_ACCESS_KEY}
  secret_access_key: ${S3_SECRET_ACCESS_KEY}
  bucket: pytorch-geometric.com
rusty1s's avatar
update  
rusty1s committed
130
131
  local_dir: dist
  upload_dir: whl/torch-${TORCH_VERSION}+${IDX}
132
133
134
135
136
  acl: public_read
  on:
    all_branches: true
    repo: rusty1s/pytorch_scatter
    condition: $TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy
rusty1s's avatar
rusty1s committed
137
138
notifications:
  email: false