.travis.yml 3.67 KB
Newer Older
rusty1s's avatar
rusty1s committed
1
2
sudo: enabled

rusty1s's avatar
matrix  
rusty1s committed
3
env:
rusty1s's avatar
rusty1s committed
4
  global:
rusty1s's avatar
rusty1s committed
5
    - TORCH_VERSION=1.4.0
rusty1s's avatar
rusty1s committed
6
7
8
  # jobs:
  #   - FORCE_CUDA=0 TORCH=${TORCH_VERSION}+cpu
  #   - FORCE_CUDA=1 CUDA_SHORT=9.2 CUDA=9.2.148-1 UBUNTU_VERSION=ubuntu1604 CUBLAS=cuda-cublas-dev-9-2 TORCH=${TORCH_VERSION}+cu92
rusty1s's avatar
rusty1s committed
9
    # - FORCE_CUDA=1 CUDA_SHORT=10.0 CUDA=10.0.130-1 UBUNTU_VERSION=ubuntu1804 CUBLAS=cuda-cublas-dev-10-0 TORCH=${TORCH_VERSION}+cu100
rusty1s's avatar
rusty1s committed
10
11

jobs:
rusty1s's avatar
rusty1s committed
12
  include:
rusty1s's avatar
rusty1s committed
13
14
15
16
17
    - name: linux/cpu
      os: linux
      language: python
      python: 3.7.6
      env:
rusty1s's avatar
retry  
rusty1s committed
18
        - IDX=cpu
rusty1s's avatar
rusty1s committed
19
        - TORCH=${TORCH_VERSION}+${IDX}
rusty1s's avatar
rusty1s committed
20
21
22
23
24
25
26
27
28
29
    - name: linux/cu92
      os: linux
      language: python
      python: 3.7.6
      env:
        - IDX=cu92
        - CUDA_SHORT=9.2
        - CUDA=9.2.148-1
        - UBUNTU_VERSION=ubuntu1604
        - CUBLAS=cuda-cublas-dev-9-2
rusty1s's avatar
rusty1s committed
30
        - TORCH=${TORCH_VERSION}+${IDX}
rusty1s's avatar
rusty1s committed
31
32
33
34
35
    - name: linux/cu100
      os: linux
      language: python
      python: 3.7.6
      env:
rusty1s's avatar
update  
rusty1s committed
36
        - IDX=cu100
rusty1s's avatar
rusty1s committed
37
38
39
40
        - CUDA_SHORT=10.0
        - CUDA=10.0.130-1
        - UBUNTU_VERSION=ubuntu1804
        - CUBLAS=cuda-cublas-dev-10-0
rusty1s's avatar
rusty1s committed
41
        - TORCH=${TORCH_VERSION}+${IDX}
rusty1s's avatar
rusty1s committed
42
43
44
45
46
47
48
49
50
51
    - name: linux/cu101
      os: linux
      language: python
      python: 3.7.6
      env:
        - IDX=cu101
        - CUDA_SHORT=10.1
        - CUDA=10.1.105-1
        - UBUNTU_VERSION=ubuntu1804
        - CUBLAS=libcublas-dev
rusty1s's avatar
rusty1s committed
52
        - TORCH=${TORCH_VERSION}
rusty1s's avatar
rusty1s committed
53
54
55
56
57
58
    - name: macosx/cpu
      os: osx
      osx_image: xcode11.3
      language: shell
      env:
        - IDX=cpu
rusty1s's avatar
rusty1s committed
59
        - TORCH=${TORCH_VERSION}
rusty1s's avatar
rusty1s committed
60
61
62
63
64
    - name: windows/cpu
      os: windows
      language: shell
      env:
        - IDX=cpu
rusty1s's avatar
rusty1s committed
65
        - TORCH=${TORCH_VERSION}+${IDX}
rusty1s's avatar
typo  
rusty1s committed
66
        - PATH=/c/Python37:/c/Python37/Scripts:$PATH
rusty1s's avatar
rusty1s committed
67
68
      before_install:
        - choco install python --version 3.7.6
rusty1s's avatar
rusty1s committed
69
        - python -m pip install --upgrade --user pip
rusty1s's avatar
rusty1s committed
70
71
72
73
74
75
76
77
78
79
80
    - 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
rusty1s's avatar
rusty1s committed
81
82
83
84
85
86
87
    # - 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
88
    #     - TORCH=${TORCH_VERSION}+100
rusty1s's avatar
rusty1s committed
89
90
91
    #     - PATH=/c/Python37:/c/Python37/Scripts:$PATH
    #   before_install:
    #     - choco install python --version 3.7.6
rusty1s's avatar
revert  
rusty1s committed
92
    # - name: windows/cu102
rusty1s's avatar
rusty1s committed
93
94
95
96
97
98
99
100
101
102
    #   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
103

rusty1s's avatar
fix  
rusty1s committed
104
install:
rusty1s's avatar
rusty1s committed
105
  - pip3 install --upgrade pip
rusty1s's avatar
rusty1s committed
106
  - pip3 install wheel
rusty1s's avatar
rusty1s committed
107
  - source script/install.sh
rusty1s's avatar
rusty1s committed
108
  - pip3 install numpy
rusty1s's avatar
rusty1s committed
109
  - pip3 install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html
rusty1s's avatar
rusty1s committed
110
  - pip3 install flake8
rusty1s's avatar
rusty1s committed
111
  - pip3 install codecov
rusty1s's avatar
rusty1s committed
112
  - python3 setup.py install || python setup.py install
rusty1s's avatar
rusty1s committed
113

rusty1s's avatar
rusty1s committed
114
script:
rusty1s's avatar
rusty1s committed
115
  - flake8 .
rusty1s's avatar
rusty1s committed
116
  - python3 setup.py test || python setup.py test
rusty1s's avatar
rusty1s committed
117
after_success:
rusty1s's avatar
revert  
rusty1s committed
118
119
  - if [ "${TRAVIS_OS_NAME}" != "windows" ]; then python3 setup.py bdist_wheel --dist-dir=dist/${IDX}; fi
  - if [ "${TRAVIS_OS_NAME}" = "windows" ]; then python setup.py bdist_wheel --dist-dir=dist/${IDX}; fi
rusty1s's avatar
rusty1s committed
120
121
122
  - codecov
deploy:
  provider: s3
rusty1s's avatar
rusty1s committed
123
124
  edge: true
  skip_cleanup: true
rusty1s's avatar
rusty1s committed
125
  access_key_id: AKIAIZNS6U2JRBGA3OHA
rusty1s's avatar
retry  
rusty1s committed
126
  secret_access_key: ${S3_SECRET_ACCESS_KEY}
rusty1s's avatar
rusty1s committed
127
  bucket: pytorch-scatter
rusty1s's avatar
retry  
rusty1s committed
128
  local-dir: dist/${IDX}
rusty1s's avatar
retry  
rusty1s committed
129
  upload-dir: whl/${IDX}
rusty1s's avatar
rusty1s committed
130
131
132
  acl: public_read
  on:
    repo: rusty1s/pytorch_scatter
rusty1s's avatar
rusty1s committed
133
    # tags: true
rusty1s's avatar
retry  
rusty1s committed
134
    branch: travis
rusty1s's avatar
rusty1s committed
135
136
notifications:
  email: false