.travis.yml 2.32 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:
rusty1s's avatar
rusty1s committed
12
    # Python 3.8
rusty1s's avatar
update  
rusty1s committed
13
    include:
rusty1s's avatar
update  
rusty1s committed
14
      - # PY=3.8 TORCH=1.6.0 cpu
rusty1s's avatar
new  
rusty1s committed
15
        if: (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
update  
rusty1s committed
16
        env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cpu
rusty1s's avatar
update  
rusty1s committed
17
      - # PY=3.8 TORCH=1.6.0 cu92
rusty1s's avatar
new  
rusty1s committed
18
        if: (tag is present or commit_message =~ ci-deploy) and os = linux
rusty1s's avatar
update  
rusty1s committed
19
        env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu92
rusty1s's avatar
update  
rusty1s committed
20
      - # PY=3.8 TORCH=1.6.0 cu101
rusty1s's avatar
new  
rusty1s committed
21
        if: (tag is present or commit_message =~ ci-deploy) and os != osx
rusty1s's avatar
update  
rusty1s committed
22
        env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu101
rusty1s's avatar
update  
rusty1s committed
23
      - # PY=3.8 TORCH=1.6.0 cu102
rusty1s's avatar
new  
rusty1s committed
24
        if: os != osx
rusty1s's avatar
update  
rusty1s committed
25
        env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
update  
rusty1s committed
26
      - # PY=3.8 TORCH=1.5.0 cpu
rusty1s's avatar
new  
rusty1s committed
27
        if: (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
update  
rusty1s committed
28
        env: PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cpu
rusty1s's avatar
update  
rusty1s committed
29
      - # PY=3.8 TORCH=1.5.0 cu92
rusty1s's avatar
new  
rusty1s committed
30
        if: (tag is present or commit_message =~ ci-deploy) and os = linux
rusty1s's avatar
update  
rusty1s committed
31
        env: PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cu92
rusty1s's avatar
update  
rusty1s committed
32
      - # PY=3.8 TORCH=1.5.0 cu101
rusty1s's avatar
new  
rusty1s committed
33
        if: (tag is present or commit_message =~ ci-deploy) and os != osx
rusty1s's avatar
update  
rusty1s committed
34
        env: PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cu101
rusty1s's avatar
update  
rusty1s committed
35
      - # PY=3.8 TORCH=1.5.0 cu102
rusty1s's avatar
new  
rusty1s committed
36
        if: os != osx
rusty1s's avatar
update  
rusty1s committed
37
        env: PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cu102
rusty1s's avatar
rusty1s committed
38

rusty1s's avatar
fix  
rusty1s committed
39
install:
rusty1s's avatar
rusty1s committed
40
  - source script/gcc.sh
rusty1s's avatar
oder  
rusty1s committed
41
  - source script/cuda.sh
rusty1s's avatar
rusty1s committed
42
  - source script/conda.sh
rusty1s's avatar
rusty1s committed
43
44
  - conda create --yes -n test python="${PYTHON_VERSION}"
  - source activate test
rusty1s's avatar
rusty1s committed
45
  - conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
rusty1s's avatar
rusty1s committed
46
  - source script/torch.sh
rusty1s's avatar
release  
rusty1s committed
47
48
  - pip install flake8
  - pip install codecov
rusty1s's avatar
rusty1s committed
49
  - pip install .[test]
rusty1s's avatar
typo  
rusty1s committed
50
script:
rusty1s's avatar
rusty1s committed
51
  - flake8 .
rusty1s's avatar
typo  
rusty1s committed
52
53
  - python setup.py test
after_success:
rusty1s's avatar
rusty1s committed
54
55
  - python setup.py bdist_wheel --dist-dir=dist/torch-${TORCH_VERSION}
  - python script/rename_wheel.py ${IDX}
rusty1s's avatar
rusty1s committed
56
  - codecov
rusty1s's avatar
update  
rusty1s committed
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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_scatter
#     condition: $TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy
rusty1s's avatar
rusty1s committed
71
72
notifications:
  email: false