.travis.yml 2.72 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
5
6
  # - linux
  # - 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
12
13
  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
rusty1s's avatar
rusty1s committed
14
15
16
17
18
19
    # - 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
rusty1s's avatar
rusty1s committed
20
21
22
23
24
25
26
27
    # - 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
  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

rusty1s's avatar
fix  
rusty1s committed
56
install:
rusty1s's avatar
rusty1s committed
57
  - source script/cuda.sh
rusty1s's avatar
rusty1s committed
58
  - source script/conda.sh
rusty1s's avatar
rusty1s committed
59
  - conda create --yes -n test python=${PYTHON_VERSION}
rusty1s's avatar
rusty1s committed
60
  - source activate test
rusty1s's avatar
typo  
rusty1s committed
61
  - conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
rusty1s's avatar
rusty1s committed
62
  - pip install flake8 codecov
rusty1s's avatar
rusty1s committed
63
  - python setup.py install
rusty1s's avatar
rusty1s committed
64

rusty1s's avatar
typo  
rusty1s committed
65
66
67
68
script:
  - flake8 .
  - python setup.py test
after_success:
rusty1s's avatar
rusty1s committed
69
  - python setup.py bdist_wheel --dist-dir=dist/torch-${TORCH_VERSION}/${IDX}
rusty1s's avatar
typo  
rusty1s committed
70
71
72
  - codecov
deploy:
  provider: s3
rusty1s's avatar
rusty1s committed
73
  region: eu-central-1
rusty1s's avatar
typo  
rusty1s committed
74
75
76
77
  edge: true
  access_key_id: AKIAJB7S6NJ5OM5MAAGA
  secret_access_key: ${S3_SECRET_ACCESS_KEY}
  bucket: pytorch-scatter
rusty1s's avatar
rusty1s committed
78
79
  local_dir: dist/torch-${TORCH_VERSION}/${IDX}
  upload_dir: whl/torch-${TORCH_VERSION}/${IDX}
rusty1s's avatar
typo  
rusty1s committed
80
81
82
83
84
  acl: public_read
  on:
    repo: rusty1s/pytorch_scatter
    # tags: true
    branch: travis
rusty1s's avatar
rusty1s committed
85
86
notifications:
  email: false