language: shell os: - linux - osx - windows env: global: - CUDA_HOME=/usr/local/cuda jobs: # Python 3.6 # - PYTHON_VERSION=3.6 TORCH_VERSION=1.9.0 IDX=cpu # - PYTHON_VERSION=3.6 TORCH_VERSION=1.9.0 IDX=cu102 # - PYTHON_VERSION=3.6 TORCH_VERSION=1.9.0 IDX=cu111 # - PYTHON_VERSION=3.6 TORCH_VERSION=1.8.0 IDX=cpu # - PYTHON_VERSION=3.6 TORCH_VERSION=1.8.0 IDX=cu101 # - PYTHON_VERSION=3.6 TORCH_VERSION=1.8.0 IDX=cu102 # - PYTHON_VERSION=3.6 TORCH_VERSION=1.8.0 IDX=cu111 # Python 3.7 # - PYTHON_VERSION=3.7 TORCH_VERSION=1.9.0 IDX=cpu # - PYTHON_VERSION=3.7 TORCH_VERSION=1.9.0 IDX=cu102 # - PYTHON_VERSION=3.7 TORCH_VERSION=1.9.0 IDX=cu111 # - PYTHON_VERSION=3.7 TORCH_VERSION=1.8.0 IDX=cpu # - PYTHON_VERSION=3.7 TORCH_VERSION=1.8.0 IDX=cu101 # - PYTHON_VERSION=3.7 TORCH_VERSION=1.8.0 IDX=cu102 # - PYTHON_VERSION=3.7 TORCH_VERSION=1.8.0 IDX=cu111 # Python 3.8 # - PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cpu # - PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cu102 # - PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cu111 # - PYTHON_VERSION=3.8 TORCH_VERSION=1.8.0 IDX=cpu # - PYTHON_VERSION=3.8 TORCH_VERSION=1.8.0 IDX=cu101 # - PYTHON_VERSION=3.8 TORCH_VERSION=1.8.0 IDX=cu102 # - PYTHON_VERSION=3.8 TORCH_VERSION=1.8.0 IDX=cu111 # Python 3.9 - PYTHON_VERSION=3.9 TORCH_VERSION=1.9.0 IDX=cpu - PYTHON_VERSION=3.9 TORCH_VERSION=1.9.0 IDX=cu102 - PYTHON_VERSION=3.9 TORCH_VERSION=1.9.0 IDX=cu111 # - PYTHON_VERSION=3.9 TORCH_VERSION=1.8.0 IDX=cpu # - PYTHON_VERSION=3.9 TORCH_VERSION=1.8.0 IDX=cu101 # - PYTHON_VERSION=3.9 TORCH_VERSION=1.8.0 IDX=cu102 # - PYTHON_VERSION=3.9 TORCH_VERSION=1.8.0 IDX=cu111 jobs: # For daily builds, we only test on Python 3.6 with CUDA 11.1. # For deployment, we exclude *all* macOS CUDA jobs. exclude: # Python 3.6 / PyTorch 1.9.0 # - if: not (tag is present or commit_message =~ ci-deploy) and os != osx # env: PYTHON_VERSION=3.6 TORCH_VERSION=1.9.0 IDX=cpu # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.6 TORCH_VERSION=1.9.0 IDX=cu102 # - if: os = osx # env: PYTHON_VERSION=3.6 TORCH_VERSION=1.9.0 IDX=cu111 # # Python 3.6 / PyTorch 1.8.0 # - if: not (tag is present or commit_message =~ ci-deploy) and os != osx # env: PYTHON_VERSION=3.6 TORCH_VERSION=1.8.0 IDX=cpu # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.6 TORCH_VERSION=1.8.0 IDX=cu101 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.6 TORCH_VERSION=1.8.0 IDX=cu102 # - if: os = osx # env: PYTHON_VERSION=3.6 TORCH_VERSION=1.8.0 IDX=cu111 # # Python 3.7 / PyTorch 1.9.0 # - if: not (tag is present or commit_message =~ ci-deploy) # env: PYTHON_VERSION=3.7 TORCH_VERSION=1.9.0 IDX=cpu # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.7 TORCH_VERSION=1.9.0 IDX=cu102 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.7 TORCH_VERSION=1.9.0 IDX=cu111 # - if: not (tag is present or commit_message =~ ci-deploy) # # Python 3.7 / PyTorch 1.8.0 # - if: not (tag is present or commit_message =~ ci-deploy) # env: PYTHON_VERSION=3.7 TORCH_VERSION=1.8.0 IDX=cpu # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.7 TORCH_VERSION=1.8.0 IDX=cu101 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.7 TORCH_VERSION=1.8.0 IDX=cu102 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.7 TORCH_VERSION=1.8.0 IDX=cu111 # - if: not (tag is present or commit_message =~ ci-deploy) # # Python 3.8 / PyTorch 1.9.0 # - if: not (tag is present or commit_message =~ ci-deploy) # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cpu # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cu102 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cu111 # - if: not (tag is present or commit_message =~ ci-deploy) # # Python 3.8 / PyTorch 1.8.0 # - if: not (tag is present or commit_message =~ ci-deploy) # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.8.0 IDX=cpu # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.8.0 IDX=cu101 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.8.0 IDX=cu102 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.8.0 IDX=cu111 # - if: not (tag is present or commit_message =~ ci-deploy) # # Python 3.9 / PyTorch 1.9.0 # - if: not (tag is present or commit_message =~ ci-deploy) # env: PYTHON_VERSION=3.9 TORCH_VERSION=1.9.0 IDX=cpu # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.9 TORCH_VERSION=1.9.0 IDX=cu102 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.9 TORCH_VERSION=1.9.0 IDX=cu111 # - if: not (tag is present or commit_message =~ ci-deploy) # # Python 3.9 / PyTorch 1.8.0 # - if: not (tag is present or commit_message =~ ci-deploy) # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cpu # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cu101 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cu102 # - if: not (tag is present or commit_message =~ ci-deploy) or os = osx # env: PYTHON_VERSION=3.8 TORCH_VERSION=1.9.0 IDX=cu111 # - if: not (tag is present or commit_message =~ ci-deploy) install: - source script/gcc.sh - 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 -c conda-forge --yes - source script/torch.sh - pip install flake8 - pip install codecov - travis_wait 30 pip install -e .[test] script: - flake8 . - python setup.py test after_success: - python setup.py bdist_wheel --dist-dir=dist - ls -lah dist/ - 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 upload_dir: whl/torch-${TORCH_VERSION}+${IDX} acl: public_read on: all_branches: true repo: rusty1s/pytorch_scatter condition: $TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy notifications: email: false