.travis.yml 1.1 KB
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
language: python

sudo: enabled

rusty1s's avatar
matrix  
rusty1s committed
5
6
python:
  - 3.6
rusty1s's avatar
rusty1s committed
7

rusty1s's avatar
matrix  
rusty1s committed
8
9
os:
  - linux
rusty1s's avatar
rusty1s committed
10
  - windows
rusty1s's avatar
matrix  
rusty1s committed
11
12

env:
rusty1s's avatar
rusty1s committed
13
14
  global:
    - TORCH_VERSION=1.4.0
rusty1s's avatar
rusty1s committed
15
    - CIBW_BUILD=cp36-*
rusty1s's avatar
rusty1s committed
16
  jobs:
rusty1s's avatar
rusty1s committed
17
18
19
20
    - 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
    # - 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
    # - FORCE_CUDA=1 CUDA_SHORT=10.1 CUDA=10.1.105-1 UBUNTU_VERSION=ubuntu1804 CUBLAS=libcublas-dev TORCH=${TORCH_VERSION}
rusty1s's avatar
rusty1s committed
21
22

jobs:
rusty1s's avatar
rusty1s committed
23
  include:
rusty1s's avatar
rusty1s committed
24
    - os: osx
rusty1s's avatar
rusty1s committed
25
      python: 3.6
rusty1s's avatar
rusty1s committed
26
      env: FORCE_CUDA=0 TORCH=${TORCH_VERSION}
rusty1s's avatar
matrix  
rusty1s committed
27
28

before_install:
rusty1s's avatar
rusty1s committed
29
  - source install.sh
rusty1s's avatar
rusty1s committed
30
  - pip install numpy
rusty1s's avatar
rusty1s committed
31
  - pip install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html
rusty1s's avatar
rusty1s committed
32
  - python -c "import torch; print(torch.__version__)"
rusty1s's avatar
rusty1s committed
33
  - pip install flake8
rusty1s's avatar
rusty1s committed
34
35
36
37
  - pip install twine cibuildwheel

install:
  - python setup.py install
rusty1s's avatar
rusty1s committed
38

rusty1s's avatar
rusty1s committed
39
script:
rusty1s's avatar
rusty1s committed
40
  - flake8 .
rusty1s's avatar
rusty1s committed
41
  - python setup.py test
rusty1s's avatar
rusty1s committed
42
  - python -m cibuildwheel --output-dir wheelhouse
rusty1s's avatar
rusty1s committed
43
  - ls wheelhouse
rusty1s's avatar
rusty1s committed
44
45
notifications:
  email: false