.travis.yml 1.89 KB
Newer Older
rusty1s's avatar
rusty1s committed
1
2
sudo: enabled

rusty1s's avatar
matrix  
rusty1s committed
3
env:
rusty1s's avatar
rusty1s committed
4
5
  global:
    - TORCH_VERSION=1.4.0
rusty1s's avatar
rusty1s committed
6
    - CIBW_BUILD=cp36-*
rusty1s's avatar
rusty1s committed
7
8
9
  # jobs:
  #   - 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
rusty1s's avatar
rusty1s committed
10
11
    # - 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
12
13

jobs:
rusty1s's avatar
rusty1s committed
14
  include:
rusty1s's avatar
rusty1s committed
15
    - os: linux
rusty1s's avatar
fixes  
rusty1s committed
16
      language: python
rusty1s's avatar
rusty1s committed
17
      python: 3.6
rusty1s's avatar
rusty1s committed
18
19
20
      env:
        - TORCH=${TORCH_VERSION}+cpu
    - os: linux
rusty1s's avatar
fixes  
rusty1s committed
21
      language: python
rusty1s's avatar
rusty1s committed
22
23
24
25
26
27
28
29
      python: 3.6
      env:
        - 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
rusty1s's avatar
update  
rusty1s committed
30
31
32
    - os: osx
      osx_image: xcode11.2
      language: shell
rusty1s's avatar
win  
rusty1s committed
33
34
35
      env:
        - TORCH=${TORCH_VERSION}
        - PATH=/c/Python38:/c/Python38/Scripts:$PATH
rusty1s's avatar
rusty1s committed
36
37
    - os: windows
      language: shell  # `language: python` is an error on Travis CI Windows
rusty1s's avatar
fix  
rusty1s committed
38
39
      env:
        - TORCH=${TORCH_VERSION}+cpu
rusty1s's avatar
rusty1s committed
40
      before_install:
rusty1s's avatar
win  
rusty1s committed
41
        - choco install python --version 3.8.0
rusty1s's avatar
update  
rusty1s committed
42
        - python -m pip install --upgrade pip
rusty1s's avatar
rusty1s committed
43
44
45
    # - os: o
    #   python: 3.6
    #   env: FORCE_CUDA=0 TORCH=${TORCH_VERSION}
rusty1s's avatar
matrix  
rusty1s committed
46

rusty1s's avatar
fix  
rusty1s committed
47
install:
rusty1s's avatar
update  
rusty1s committed
48
49
  - python3 --version
  - python --version
rusty1s's avatar
fix  
rusty1s committed
50
  - pip3 install --upgrade pip
rusty1s's avatar
rusty1s committed
51
  - source install.sh
rusty1s's avatar
rusty1s committed
52
53
  - pip3 install numpy
  - pip3 install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html
rusty1s's avatar
rusty1s committed
54
  - python -c "import torch; print(torch.__version__)"
rusty1s's avatar
rusty1s committed
55
56
57
  - pip3 install flake8
  - pip3 install twine cibuildwheel
  - python3 setup.py install || python setup.py install
rusty1s's avatar
rusty1s committed
58

rusty1s's avatar
rusty1s committed
59
script:
rusty1s's avatar
rusty1s committed
60
  - flake8 .
rusty1s's avatar
update  
rusty1s committed
61
  - python3 setup.py test
rusty1s's avatar
rusty1s committed
62
  - python3 -m cibuildwheel --output-dir wheelhouse
rusty1s's avatar
rusty1s committed
63
  - ls wheelhouse
rusty1s's avatar
rusty1s committed
64
65
notifications:
  email: false