.travis.yml 3.24 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
    # - 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
rusty1s's avatar
rusty1s committed
11
12

jobs:
rusty1s's avatar
rusty1s committed
13
  include:
rusty1s's avatar
rusty1s committed
14
15
16
    # - name: linux/cpu
    #   os: linux
    #   language: python
rusty1s's avatar
rusty1s committed
17
    #   python: 3.7.6
rusty1s's avatar
rusty1s committed
18
19
20
21
22
    #   env:
    #     - TORCH=${TORCH_VERSION}+cpu
    # - name: linux/cu92
    #   os: linux
    #   language: python
rusty1s's avatar
rusty1s committed
23
    #   python: 3.7.6
rusty1s's avatar
rusty1s committed
24
25
26
27
28
29
30
    #   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
rusty1s committed
31
32
33
    # - name: linux/cu100
    #   os: linux
    #   language: python
rusty1s's avatar
rusty1s committed
34
    #   python: 3.7.6
rusty1s's avatar
rusty1s committed
35
36
37
38
39
40
41
42
43
44
    #   env:
    #     - 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
    # - name: linux/cu101
    #   os: linux
    #   language: python
rusty1s's avatar
rusty1s committed
45
    #   python: 3.7.6
rusty1s's avatar
rusty1s committed
46
47
48
49
50
51
52
    #   env:
    #     - 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
53
54
55
56
57
58
    # - name: macosx/cpu
    #   os: osx
    #   osx_image: xcode11.3
    #   language: shell
    #   env:
    #     - TORCH=${TORCH_VERSION}
rusty1s's avatar
rusty1s committed
59
    # - EXTRA_COMPILE_ARGS="-IC:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\include"
rusty1s's avatar
update  
rusty1s committed
60
61
    - name: windows/cpu
      os: windows
rusty1s's avatar
rusty1s committed
62
      language: shell
rusty1s's avatar
fix  
rusty1s committed
63
64
      env:
        - TORCH=${TORCH_VERSION}+cpu
rusty1s's avatar
rusty1s committed
65
        - PATH=/c/Python37:/c/Python37/Scripts:$PATH
rusty1s's avatar
rusty1s committed
66
67
      before_install:
        - choco install python --version 3.7.6
rusty1s's avatar
rusty1s committed
68
    - name: windows/cu92
rusty1s's avatar
rusty1s committed
69
      os: windows
rusty1s's avatar
rusty1s committed
70
      language: shell
rusty1s's avatar
rusty1s committed
71
      env:
rusty1s's avatar
fixes  
rusty1s committed
72
        - FORCE_CUDA=1
rusty1s's avatar
rusty1s committed
73
74
        - CUDA_SHORT=9.2
        - CUDA=9.2.148
rusty1s's avatar
rusty1s committed
75
76
        - TORCH=${TORCH_VERSION}
        - PATH=/c/Python37:/c/Python37/Scripts:$PATH
rusty1s's avatar
rusty1s committed
77
      before_install:
rusty1s's avatar
update  
rusty1s committed
78
        - choco install python --version 3.7.6
rusty1s's avatar
rusty1s committed
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
    # - name: windows/cu100
    #   os: windows
    #   language: shell
    #   env:
    #     - FORCE_CUDA=1
    #     - CUDA_SHORT=10.1
    #     - CUDA=10.0.130_411.31
    #     - TORCH=${TORCH_VERSION}
    #     - PATH=/c/Python37:/c/Python37/Scripts:$PATH
    #   before_install:
    #     - choco install python --version 3.7.6
    # - name: windows/cu101
    #   os: windows
    #   language: shell
    #   env:
    #     - FORCE_CUDA=1
    #     - CUDA_SHORT=10.1
    #     - CUDA=10.1.105_418.96
    #     - TORCH=${TORCH_VERSION}
    #     - PATH=/c/Python37:/c/Python37/Scripts:$PATH
    #   before_install:
    #     - choco install python --version 3.7.6
rusty1s's avatar
matrix  
rusty1s committed
101

rusty1s's avatar
fix  
rusty1s committed
102
install:
rusty1s's avatar
rusty1s committed
103
  - pip3 install --upgrade --user pip
rusty1s's avatar
rusty1s committed
104
  - source install.sh
rusty1s's avatar
rusty1s committed
105
106
107
108
  - pip3 install numpy
  - pip3 install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html
  - pip3 install flake8
  - python3 setup.py install || python setup.py install
rusty1s's avatar
rusty1s committed
109

rusty1s's avatar
rusty1s committed
110
script:
rusty1s's avatar
rusty1s committed
111
  - flake8 .
rusty1s's avatar
rusty1s committed
112
  - python3 setup.py test || python setup.py install
rusty1s's avatar
fixes  
rusty1s committed
113
114
  - python3 setup.py sdist bdist_wheel
  - ls dist
rusty1s's avatar
rusty1s committed
115
116
notifications:
  email: false