.travis.yml 1.84 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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    # - name: linux/cpu
    #   os: linux
    #   language: python
    #   python: 3.7
    #   env:
    #     - TORCH=${TORCH_VERSION}+cpu
    # - name: linux/cu92
    #   os: linux
    #   language: python
    #   python: 3.7
    #   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
    # - name: macosx/cpu
    #   os: osx
    #   osx_image: xcode11.3
    #   language: shell
    #   env:
    #     - TORCH=${TORCH_VERSION}
    #     - PATH=/c/Python37:/c/Python37/Scripts:$PATH
rusty1s's avatar
update  
rusty1s committed
39
40
    - name: windows/cpu
      os: windows
rusty1s's avatar
rusty1s committed
41
      language: shell  # `language: python` is an error on Travis CI Windows
rusty1s's avatar
fix  
rusty1s committed
42
43
      env:
        - TORCH=${TORCH_VERSION}+cpu
rusty1s's avatar
rusty1s committed
44
      before_install:
rusty1s's avatar
update  
rusty1s committed
45
        - choco install python --version 3.7.6
rusty1s's avatar
matrix  
rusty1s committed
46

rusty1s's avatar
fix  
rusty1s committed
47
48
install:
  - pip3 install --upgrade pip
rusty1s's avatar
rusty1s committed
49
  - source install.sh
rusty1s's avatar
rusty1s committed
50
51
52
53
54
  - pip3 install numpy
  - pip3 install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html
  - pip3 install flake8
  - pip3 install twine cibuildwheel
  - python3 setup.py install || python setup.py install
rusty1s's avatar
rusty1s committed
55

rusty1s's avatar
rusty1s committed
56
script:
rusty1s's avatar
rusty1s committed
57
  - flake8 .
rusty1s's avatar
rusty1s committed
58
  - python3 setup.py test || python setup.py install
rusty1s's avatar
rusty1s committed
59
  - python3 -m cibuildwheel --output-dir wheelhouse
rusty1s's avatar
rusty1s committed
60
  - ls wheelhouse
rusty1s's avatar
rusty1s committed
61
62
notifications:
  email: false