"docs/zh_cn/understand_mmcv/utils.md" did not exist on "0cbe5f4c845867974d4b52904be36c5557512f3e"
.travis.yml 6.13 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
    # Python 3.6
rusty1s's avatar
rusty1s committed
13
14
    # - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cpu
    # - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu92
rusty1s's avatar
rusty1s committed
15
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu101
rusty1s's avatar
rusty1s committed
16
17
18
19
    # - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu102
    # - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu110
    # - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cpu
    # - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu92
rusty1s's avatar
rusty1s committed
20
    - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu101
rusty1s's avatar
rusty1s committed
21
    # - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
22
    # Python 3.7
rusty1s's avatar
rusty1s committed
23
24
    # - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cpu
    # - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu92
rusty1s's avatar
rusty1s committed
25
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu101
rusty1s's avatar
rusty1s committed
26
27
28
29
    # - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu102
    # - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu110
    # - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cpu
    # - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu92
rusty1s's avatar
rusty1s committed
30
    - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu101
rusty1s's avatar
rusty1s committed
31
    # - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
32
    # Python 3.8
rusty1s's avatar
rusty1s committed
33
34
    # - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cpu
    # - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu92
rusty1s's avatar
rusty1s committed
35
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu101
rusty1s's avatar
rusty1s committed
36
37
38
39
    # - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu102
    # - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu110
    # - PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cpu
    # - PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu92
rusty1s's avatar
rusty1s committed
40
    - PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu101
rusty1s's avatar
rusty1s committed
41
    # - PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
42

rusty1s's avatar
rusty1s committed
43
jobs:
rusty1s's avatar
rusty1s committed
44
  # For daily builds, we only test on Python 3.6 with CUDA 10.2/11.0.
rusty1s's avatar
rusty1s committed
45
46
47
  # For deployment, we exclude *all* macOS CUDA and Windows CUDA 9.2 jobs.
  exclude:
    # Python 3.6
rusty1s's avatar
rusty1s committed
48
49
50
51
52
53
54
55
56
57
    - if: not (tag is present or commit_message =~ ci-deploy) and os != osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cpu
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu92
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu101
    - if: os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu102
    - if: os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu110
rusty1s's avatar
rusty1s committed
58
59
60
61
62
63
64
65
    - if: not (tag is present or commit_message =~ ci-deploy) and os != osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cpu
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu92
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu101
    - if: os = osx
      env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
66
67
68
    # Python 3.7
    - if: not (tag is present or commit_message =~ ci-deploy)
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cpu
rusty1s's avatar
rusty1s committed
69
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
rusty1s's avatar
rusty1s committed
70
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu92
rusty1s's avatar
rusty1s committed
71
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
rusty1s committed
72
73
74
75
76
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu101
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu102
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu110
rusty1s's avatar
rusty1s committed
77
78
79
80
81
82
83
84
    - if: not (tag is present or commit_message =~ ci-deploy)
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cpu
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu92
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu101
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
85
    # Python 3.8
rusty1s's avatar
rusty1s committed
86
    - if: not (tag is present or commit_message =~ ci-deploy)
rusty1s's avatar
rusty1s committed
87
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cpu
rusty1s's avatar
rusty1s committed
88
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
rusty1s's avatar
rusty1s committed
89
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu92
rusty1s's avatar
rusty1s committed
90
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
rusty1s committed
91
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu101
rusty1s's avatar
rusty1s committed
92
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
rusty1s committed
93
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu102
rusty1s's avatar
rusty1s committed
94
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
rusty1s's avatar
rusty1s committed
95
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu110
rusty1s's avatar
rusty1s committed
96
97
98
99
100
101
102
103
    - if: not (tag is present or commit_message =~ ci-deploy)
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cpu
    - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu92
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu101
    - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
      env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu102
rusty1s's avatar
rusty1s committed
104

rusty1s's avatar
rusty1s committed
105
install:
rusty1s's avatar
rusty1s committed
106
  - source script/gcc.sh
rusty1s's avatar
rusty1s committed
107
108
109
110
111
112
113
  - 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
rusty1s's avatar
rusty1s committed
114
  - pip install scipy==1.4.1
rusty1s's avatar
rusty1s committed
115
  - python setup.py install
rusty1s's avatar
rusty1s committed
116
script:
rusty1s's avatar
rusty1s committed
117
  - flake8 .
rusty1s's avatar
rusty1s committed
118
119
  - python setup.py test
after_success:
rusty1s's avatar
rusty1s committed
120
121
  - python setup.py bdist_wheel --dist-dir=dist/torch-${TORCH_VERSION}
  - python script/rename_wheel.py ${IDX}
rusty1s's avatar
rusty1s committed
122
  - codecov
rusty1s's avatar
rusty1s committed
123
124
125
deploy:
  provider: s3
  edge: true
rusty1s's avatar
retry  
rusty1s committed
126
  region: eu-central-1
rusty1s's avatar
rusty1s committed
127
128
129
130
131
132
133
  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:
134
    all_branches: true
rusty1s's avatar
rusty1s committed
135
    repo: rusty1s/pytorch_cluster
rusty1s's avatar
rusty1s committed
136
    condition: $TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy
rusty1s's avatar
rusty1s committed
137
138
notifications:
  email: false