.travis.yml 1.02 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
  - osx
rusty1s's avatar
matrix  
rusty1s committed
11
12

env:
rusty1s's avatar
rusty1s committed
13
14
15
16
17
  global:
    - TORCH_VERSION=1.4.0
  jobs:
    - FORCE_CUDA=0 TORCH=1.4.0+cpu
    - FORCE_CUDA=1 CUDA=9.2.148-1 CUDA_SHORT=9.2 UBUNTU_VERSION=ubuntu1604 CUBLAS=cuda-cublas-dev-9-2 TORCH=${TORCH_VERSION}+cu92
rusty1s's avatar
rusty1s committed
18
19
20
21
22
23
24
    # - FORCE_CUDA=1 CUDA=10.0.130-1 CUDA_SHORT=10.0 UBUNTU_VERSION=ubuntu1804 CUBLAS=cuda-cublas-dev-10-0 TORCH=${TORCH_VERSION}+cu100
    # - FORCE_CUDA=1 CUDA=10.1.105-1 CUDA_SHORT=10.1 UBUNTU_VERSION=ubuntu1804 CUBLAS=libcublas-dev TORCH=${TORCH_VERSION}

jobs:
  exclude:
    - os: osx
      env: FORCE_CUDA=1
rusty1s's avatar
matrix  
rusty1s committed
25
26

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

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

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