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

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

rusty1s's avatar
rusty1s committed
8
9
10
env:
  global:
    - CUDA_HOME=/usr/local/cuda
rusty1s's avatar
rusty1s committed
11

rusty1s's avatar
rusty1s committed
12
  jobs:
rusty1s's avatar
rusty1s committed
13
    - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cpu
rusty1s's avatar
rusty1s committed
14
15
16
17
18
19
20
21
22
23
24
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu92
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu101
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu102
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cpu
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu92
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu101
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu102
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cpu
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu92
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu101
    # - TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu102
rusty1s's avatar
rusty1s committed
25

rusty1s's avatar
rusty1s committed
26
jobs:
rusty1s's avatar
rusty1s committed
27
  exclude:  # Exclude *all* macOS CUDA jobs and Windows CUDA 9.2 jobs.
rusty1s's avatar
rusty1s committed
28
    - os: osx
rusty1s's avatar
rusty1s committed
29
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu92
rusty1s's avatar
rusty1s committed
30
    - os: osx
rusty1s's avatar
rusty1s committed
31
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu101
rusty1s's avatar
rusty1s committed
32
    - os: osx
rusty1s's avatar
rusty1s committed
33
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu102
rusty1s's avatar
rusty1s committed
34
    - os: osx
rusty1s's avatar
rusty1s committed
35
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu92
rusty1s's avatar
rusty1s committed
36
    - os: osx
rusty1s's avatar
rusty1s committed
37
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu101
rusty1s's avatar
rusty1s committed
38
    - os: osx
rusty1s's avatar
rusty1s committed
39
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu102
rusty1s's avatar
rusty1s committed
40
    - os: osx
rusty1s's avatar
rusty1s committed
41
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu92
rusty1s's avatar
rusty1s committed
42
    - os: osx
rusty1s's avatar
rusty1s committed
43
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu101
rusty1s's avatar
rusty1s committed
44
    - os: osx
rusty1s's avatar
rusty1s committed
45
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu102
rusty1s's avatar
rusty1s committed
46
    - os: windows
rusty1s's avatar
rusty1s committed
47
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu92
rusty1s's avatar
rusty1s committed
48
    - os: windows
rusty1s's avatar
rusty1s committed
49
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu92
rusty1s's avatar
rusty1s committed
50
    - os: windows
rusty1s's avatar
rusty1s committed
51
      env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu92
rusty1s's avatar
rusty1s committed
52

rusty1s's avatar
rusty1s committed
53
install:
rusty1s's avatar
rusty1s committed
54
  - source script/gcc.sh
rusty1s's avatar
rusty1s committed
55
56
  - source script/cuda.sh
  - source script/conda.sh
rusty1s's avatar
cmake  
rusty1s committed
57
  - source script/metis.sh
rusty1s's avatar
rusty1s committed
58
59
60
61
  - conda create --yes -n test python="${PYTHON_VERSION}"
  - source activate test
  - conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
  - source script/torch.sh
rusty1s's avatar
rusty1s committed
62
  - pip install torch-scatter==latest+${IDX} -f https://s3.eu-central-1.amazonaws.com/pytorch-geometric.com/whl/torch-1.5.0.html
rusty1s's avatar
rusty1s committed
63
  - pip install flake8 codecov
rusty1s's avatar
rusty1s committed
64
  - pip install scipy==1.4.1
rusty1s's avatar
rusty1s committed
65
  - source script/install.sh
rusty1s's avatar
rusty1s committed
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# script:
#   - flake8 .
#   - python setup.py test
# after_success:
#   - python setup.py bdist_wheel --dist-dir=dist/torch-${TORCH_VERSION}
#   - python script/rename_wheel.py ${IDX}
#   - codecov
# 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:
#     all_branches: true
#     repo: rusty1s/pytorch_sparse
#     condition: $TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy
# notifications:
#   email: false