Commit fe4c7188 authored by rusty1s's avatar rusty1s
Browse files

conda python

parent ed494ee2
sudo: enabled
env: env:
global: global:
- TORCH_VERSION=1.4.0 - TORCH_VERSION=1.4.0
...@@ -12,33 +10,27 @@ jobs: ...@@ -12,33 +10,27 @@ jobs:
include: include:
- name: linux/cpu - name: linux/cpu
os: linux os: linux
language: python
python: 3.7.6
env: env:
- IDX=cpu - IDX = cpu
- TORCH=${TORCH_VERSION}+${IDX} - TOOLKIT=cpuonly
- name: linux/cu92 - name: linux/cu92
os: linux os: linux
language: python
python: 3.7.6
env: env:
- IDX=cu92 - IDX=cu92
- CUDA_SHORT=9.2 - CUDA_SHORT=9.2
- CUDA=9.2.148-1 - CUDA=9.2.148-1
- UBUNTU_VERSION=ubuntu1604 - UBUNTU_VERSION=ubuntu1604
- CUBLAS=cuda-cublas-dev-9-2 - CUBLAS=cuda-cublas-dev-9-2
- TORCH=${TORCH_VERSION}+${IDX} - TOOLKIT="cudatoolkit=${CUDA_SHORT}"
- name: linux/cu100 - name: linux/cu100
os: linux os: linux
language: python
python: 3.7.6
env: env:
- IDX=cu100 - IDX=cu100
- CUDA_SHORT=10.0 - CUDA_SHORT=10.0
- CUDA=10.0.130-1 - CUDA=10.0.130-1
- UBUNTU_VERSION=ubuntu1804 - UBUNTU_VERSION=ubuntu1804
- CUBLAS=cuda-cublas-dev-10-0 - CUBLAS=cuda-cublas-dev-10-0
- TORCH=${TORCH_VERSION}+${IDX} - TOOLKIT="cudatoolkit=${CUDA_SHORT}"
- name: linux/cu101 - name: linux/cu101
os: linux os: linux
language: python language: python
...@@ -49,36 +41,36 @@ jobs: ...@@ -49,36 +41,36 @@ jobs:
- CUDA=10.1.105-1 - CUDA=10.1.105-1
- UBUNTU_VERSION=ubuntu1804 - UBUNTU_VERSION=ubuntu1804
- CUBLAS=libcublas-dev - CUBLAS=libcublas-dev
- TORCH=${TORCH_VERSION} - TOOLKIT="cudatoolkit=${CUDA_SHORT}"
- name: macosx/cpu # - name: macosx/cpu
os: osx # os: osx
osx_image: xcode11.3 # osx_image: xcode11.3
language: shell # language: shell
env: # env:
- IDX=cpu # - IDX=cpu
- TORCH=${TORCH_VERSION} # - TORCH=${TORCH_VERSION}
- name: windows/cpu # - name: windows/cpu
os: windows # os: windows
language: shell # language: shell
env: # env:
- IDX=cpu # - IDX=cpu
- TORCH=${TORCH_VERSION}+${IDX} # - TORCH=${TORCH_VERSION}+${IDX}
- PATH=/c/Python37:/c/Python37/Scripts:$PATH # - PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install: # before_install:
- choco install python --version 3.7.6 # - choco install python --version 3.7.6
- python -m pip install --upgrade --user pip # - python -m pip install --upgrade --user pip
- name: windows/cu92 # - name: windows/cu92
os: windows # os: windows
language: shell # language: shell
env: # env:
- IDX=cu92 # - IDX=cu92
- CUDA_SHORT=9.2 # - CUDA_SHORT=9.2
- CUDA=9.2.148 # - CUDA=9.2.148
- TORCH=${TORCH_VERSION}+${IDX} # - TORCH=${TORCH_VERSION}+${IDX}
- PATH=/c/Python37:/c/Python37/Scripts:$PATH # - PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install: # before_install:
- choco install python --version 3.7.6 # - choco install python --version 3.7.6
- python -m pip install --upgrade --user pip # - python -m pip install --upgrade --user pip
# - name: windows/cu100 # - name: windows/cu100
# os: windows # os: windows
# language: shell # language: shell
...@@ -103,35 +95,38 @@ jobs: ...@@ -103,35 +95,38 @@ jobs:
# - choco install python --version 3.7.6 # - choco install python --version 3.7.6
install: install:
- pip3 install --upgrade pip
- pip3 install wheel
- source script/install.sh - source script/install.sh
- pip3 install numpy - source script/conda.sh
- pip3 install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html - conda create -yes -n test python=3.7.6
- pip3 install flake8 - source activate test
- pip3 install codecov - conda install pytorch=${TORCH_VERSION} {$TOOLKIT} -c pytorch
- python3 setup.py install || python setup.py install - python setup.py install
# - pip3 install --upgrade pip
# - pip3 install wheel
# - pip3 install numpy
# - pip3 install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html
# - pip3 install flake8
# - pip3 install codecov
script: # script:
- flake8 . # - flake8 .
- python3 setup.py test || python setup.py test # - python3 setup.py test || python setup.py test
after_success: # after_success:
- if [ "${TRAVIS_OS_NAME}" != "windows" ]; then python3 setup.py bdist_wheel --dist-dir=dist/${IDX}; fi # - 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 # - if [ "${TRAVIS_OS_NAME}" = "windows" ]; then python setup.py bdist_wheel --dist-dir=dist/${IDX}; fi
- codecov # - codecov
deploy: # deploy:
provider: s3 # provider: s3
edge: true # edge: true
skip_cleanup: true # access_key_id: AKIAJB7S6NJ5OM5MAAGA
access_key_id: AKIAJB7S6NJ5OM5MAAGA # secret_access_key: ${S3_SECRET_ACCESS_KEY}
secret_access_key: ${S3_SECRET_ACCESS_KEY} # bucket: pytorch-scatter
bucket: pytorch-scatter # local_dir: dist/${IDX}
local-dir: dist/${IDX} # upload_dir: whl/${IDX}
upload-dir: whl/${IDX} # acl: public_read
acl: public_read # on:
on: # repo: rusty1s/pytorch_scatter
repo: rusty1s/pytorch_scatter # # tags: true
# tags: true # branch: travis
branch: travis
notifications: notifications:
email: false email: false
#!/bin/bash
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
chmod +x miniconda.sh
./miniconda.sh -b
PATH=/home/travis/miniconda/bin:${PATH}
conda update --yes conda
fi
...@@ -21,5 +21,5 @@ fi ...@@ -21,5 +21,5 @@ fi
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${IDX}" != "cpu" ]; then if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${IDX}" != "cpu" ]; then
wget "https://developer.nvidia.com/compute/cuda/${CUDA_SHORT}/Prod2/local_installers2/cuda_${CUDA}_win10" wget "https://developer.nvidia.com/compute/cuda/${CUDA_SHORT}/Prod2/local_installers2/cuda_${CUDA}_win10"
./cuda_${CUDA}_win10 # ./cuda_${CUDA}_win10
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment