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

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

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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  jobs:
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8.1 IDX=cpu
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8.1 IDX=cu92
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8.1 IDX=cu100
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8.1 IDX=cu101
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7.6 IDX=cpu
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7.6 IDX=cu92
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7.6 IDX=cu100
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7.6 IDX=cu101
    # - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6.10 IDX=cpu
    # - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6.10 IDX=cu92
    # - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6.10 IDX=cu100
    # - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6.10 IDX=cu101
    # - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5.9 IDX=cpu
    # - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5.9 IDX=cu92
    # - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5.9 IDX=cu100
    # - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5.9 IDX=cu101
rusty1s's avatar
rusty1s committed
28
29

jobs:
rusty1s's avatar
rusty1s committed
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
  exclude:
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8.1 IDX=cu92
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8.1 IDX=cu100
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8.1 IDX=cu101
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7.6 IDX=cu92
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7.6 IDX=cu100
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7.6 IDX=cu101
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6.10 IDX=cu92
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6.10 IDX=cu100
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6.10 IDX=cu101
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5.9 IDX=cu92
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5.9 IDX=cu100
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.5.9 IDX=cu101

# jobs:
#   include:
#     - name: linux/cpu
#       os: linux
#       env:
#         - IDX=cpu
#         - TOOLKIT=cpuonly
#     - name: linux/cu92
#       os: linux
#       env:
#         - IDX=cu92
#         - CUDA_SHORT=9.2
#         - CUDA=9.2.148-1
#         - UBUNTU_VERSION=ubuntu1604
#         - CUBLAS=cuda-cublas-dev-9-2
#         - TOOLKIT="cudatoolkit=${CUDA_SHORT}"
#     - name: linux/cu100
#       os: linux
#       env:
#         - IDX=cu100
#         - CUDA_SHORT=10.0
#         - CUDA=10.0.130-1
#         - UBUNTU_VERSION=ubuntu1804
#         - CUBLAS=cuda-cublas-dev-10-0
#         - TOOLKIT="cudatoolkit=${CUDA_SHORT}"
#     - name: linux/cu101
#       os: linux
#       env:
#         - IDX=cu101
#         - CUDA_SHORT=10.1
#         - CUDA=10.1.105-1
#         - UBUNTU_VERSION=ubuntu1804
#         - CUBLAS=libcublas-dev
#         - TOOLKIT="cudatoolkit=${CUDA_SHORT}"
#     - name: macosx/cpu
#       os: osx
#       env:
#         - IDX=cpu
#         - TOOLKIT=""
#     - name: windows/cpu
#       os: windows
#       env:
#         - IDX=cpu
#         - TOOLKIT=cpuonly
rusty1s's avatar
rusty1s committed
100
101
102
103
104
105
106
107
108
109
110
111
    # - name: windows/cu92
    #   os: windows
    #   language: shell
    #   env:
    #     - IDX=cu92
    #     - CUDA_SHORT=9.2
    #     - CUDA=9.2.148
    #     - TORCH=${TORCH_VERSION}+${IDX}
    #     - PATH=/c/Python37:/c/Python37/Scripts:$PATH
    #   before_install:
    #     - choco install python --version 3.7.6
    #     - python -m pip install --upgrade --user pip
rusty1s's avatar
rusty1s committed
112
113
114
115
116
117
118
    # - name: windows/cu100
    #   os: windows
    #   language: shell
    #   env:
    #     - FORCE_CUDA=1
    #     - CUDA_SHORT=10.1
    #     - CUDA=10.0.130_411.31
rusty1s's avatar
fix  
rusty1s committed
119
    #     - TORCH=${TORCH_VERSION}+100
rusty1s's avatar
rusty1s committed
120
121
122
    #     - PATH=/c/Python37:/c/Python37/Scripts:$PATH
    #   before_install:
    #     - choco install python --version 3.7.6
rusty1s's avatar
revert  
rusty1s committed
123
    # - name: windows/cu102
rusty1s's avatar
rusty1s committed
124
125
126
127
128
129
130
131
132
133
    #   os: windows
    #   language: shell
    #   env:
    #     - FORCE_CUDA=1
    #     - CUDA_SHORT=10.1
    #     - CUDA=10.1.105_418.96
    #     - TORCH=${TORCH_VERSION}
    #     - PATH=/c/Python37:/c/Python37/Scripts:$PATH
    #   before_install:
    #     - choco install python --version 3.7.6
rusty1s's avatar
matrix  
rusty1s committed
134

rusty1s's avatar
fix  
rusty1s committed
135
install:
rusty1s's avatar
rusty1s committed
136
  - source script/cuda.sh
rusty1s's avatar
rusty1s committed
137
  - source script/conda.sh
rusty1s's avatar
rusty1s committed
138
  - conda create --yes -n test python=${PYTHON_VERSION}
rusty1s's avatar
rusty1s committed
139
  - source activate test
rusty1s's avatar
typo  
rusty1s committed
140
  - conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
rusty1s's avatar
rusty1s committed
141
  - pip install flake8 codecov
rusty1s's avatar
rusty1s committed
142
  - python setup.py install
rusty1s's avatar
rusty1s committed
143

rusty1s's avatar
typo  
rusty1s committed
144
145
146
147
script:
  - flake8 .
  - python setup.py test
after_success:
rusty1s's avatar
rusty1s committed
148
  - python setup.py bdist_wheel --dist-dir=dist/torch-${TORCH_VERSION}/${IDX}
rusty1s's avatar
typo  
rusty1s committed
149
150
151
  - codecov
deploy:
  provider: s3
rusty1s's avatar
rusty1s committed
152
  region: eu-central-1
rusty1s's avatar
typo  
rusty1s committed
153
154
155
156
  edge: true
  access_key_id: AKIAJB7S6NJ5OM5MAAGA
  secret_access_key: ${S3_SECRET_ACCESS_KEY}
  bucket: pytorch-scatter
rusty1s's avatar
rusty1s committed
157
158
  local_dir: dist/torch-${TORCH_VERSION}/${IDX}
  upload_dir: whl/torch-${TORCH_VERSION}/${IDX}
rusty1s's avatar
typo  
rusty1s committed
159
160
161
162
163
  acl: public_read
  on:
    repo: rusty1s/pytorch_scatter
    # tags: true
    branch: travis
rusty1s's avatar
rusty1s committed
164
165
notifications:
  email: false