-
Notifications
You must be signed in to change notification settings - Fork 218
/
.travis.yml
70 lines (61 loc) · 1.61 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
_build_cuda: &build_cuda
script:
- ./scripts/build_cputest.sh
before_deploy:
- ./scripts/build_gpu_wheel.sh
_build_cpu: &build_cpu
script:
- ./scripts/build_cputest.sh
before_deploy:
- ./scripts/build_cpu_wheel.sh
os: linux
dist: xenial
language: python
python:
- "3.6"
- "3.7"
- "3.8"
env:
- BUILD_TAG=-cpu
- CUDA=8.0.61-1 CUDA_SHORT=8.0 UBUNTU_VERSION=ubuntu1604 BUILD_TAG=-cuda8.0
- CUDA=9.2.148-1 CUDA_SHORT=9.2 UBUNTU_VERSION=ubuntu1604 BUILD_TAG=-cuda9.2
- CUDA=10.1.105-1 CUDA_SHORT=10.1 UBUNTU_VERSION=ubuntu1804 BUILD_TAG=-cuda10.1
<<: *build_cpu
jobs:
include:
- name: windows-cuda10.1
os: windows
language: bash
env:
- MSBUILD_PATH="/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin"
- PATH=/c/Python36:/c/Python36/Scripts:$PATH
- BUILD_TAG=-cuda10.1
<<: *build_cuda
- name: windows-cpu
os: windows
language: bash
env:
- MSBUILD_PATH="/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin"
- PATH=/c/Python36:/c/Python36/Scripts:$PATH
- BUILD_TAG=-cpu
<<: *build_cpu
- name: macos-cpu
os: osx
osx_image: xcode10.2
language: bash
env:
- BUILD_TAG=-cpu
<<: *build_cpu
script:
- ./scripts/build_cputest.sh
before_deploy:
- if [ $BUILD_TAG == "-cpu" && ]; then ./scripts/build_gpu_wheel.sh; else ./scripts/build_cpu_wheel.sh; fi
deploy:
provider: releases
token: ${GITHUB_API_TOKEN}
edge: true
file: "python/dist/*"
file_glob: true
skip_cleanup: true
on:
tags: true