.travis.yml 2.91 KB
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
language: shell

os:
  - linux
rusty1s's avatar
rusty1s committed
5
6
  - osx
  - windows
rusty1s's avatar
rusty1s committed
7
8
9
10
11

env:
  global:
    - CUDA_HOME=/usr/local/cuda
  jobs:
rusty1s's avatar
rusty1s committed
12
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cpu
rusty1s's avatar
rusty1s committed
13
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
rusty1s's avatar
rusty1s committed
14
15
16
17
18
19
20
21
22
23
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu100
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu101
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cpu
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu92
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu100
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu101
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cpu
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu92
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu100
    - TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu101
rusty1s's avatar
rusty1s committed
24

rusty1s's avatar
rusty1s committed
25
jobs:
rusty1s's avatar
rusty1s committed
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
  exclude:  # Exclude *all* macOS CUDA jobs and Windows CUDA 9.2/10.0 jobs.
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu100
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu101
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu92
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu100
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu101
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu92
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu100
    - os: osx
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu101
    - os: windows
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu92
    - os: windows
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu100
    - os: windows
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu92
    - os: windows
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.7 IDX=cu100
    - os: windows
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu92
    - os: windows
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.6 IDX=cu100
    - os: windows
      env: TORCH_VERSION=1.4.0 PYTHON_VERSION=3.8 IDX=cu101

rusty1s's avatar
rusty1s committed
60
install:
rusty1s's avatar
rusty1s committed
61
62
63
64
65
66
67
68
  - source script/cuda.sh
  - source script/conda.sh
  - conda create --yes -n test python="${PYTHON_VERSION}"
  - source activate test
  - conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
  - source script/torch.sh
  - pip install flake8 codecov
  - python setup.py install
rusty1s's avatar
rusty1s committed
69
script:
rusty1s's avatar
rusty1s committed
70
  - flake8 .
rusty1s's avatar
rusty1s committed
71
72
  - python setup.py test
after_success:
rusty1s's avatar
rusty1s committed
73
74
  - python setup.py bdist_wheel --dist-dir=dist/torch-${TORCH_VERSION}
  - python script/rename_wheel.py ${IDX}
rusty1s's avatar
rusty1s committed
75
  - codecov
rusty1s's avatar
rusty1s committed
76
77
78
79
80
81
82
83
84
85
86
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
  local_dir: dist/torch-${TORCH_VERSION}
  upload_dir: whl/torch-${TORCH_VERSION}
  acl: public_read
  on:
87
    all_branches: true
rusty1s's avatar
rusty1s committed
88
    repo: rusty1s/pytorch_spline_conv
rusty1s's avatar
rusty1s committed
89
    condition: $TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy
rusty1s's avatar
rusty1s committed
90
91
notifications:
  email: false