Skip to content

Commit

Permalink
Merge pull request #209 from guillaumedsde/master
Browse files Browse the repository at this point in the history
CI: build binaries for more python versions on linux
  • Loading branch information
zeyiwen committed Mar 13, 2020
2 parents 8ac8ec3 + 02966d8 commit f604b42
Showing 1 changed file with 37 additions and 43 deletions.
80 changes: 37 additions & 43 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,63 @@
_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: ubuntu-cuda8.0
env:
- CUDA=8.0.61-1
- CUDA_SHORT=8.0
- UBUNTU_VERSION=ubuntu1604
- BUILD_TAG=-cuda8.0
dist: xenial
language: python
before_deploy:
- ./scripts/build_gpu_wheel.sh
- name: ubuntu-cuda9.2
env:
- CUDA=9.2.148-1
- CUDA_SHORT=9.2
- UBUNTU_VERSION=ubuntu1604
- BUILD_TAG=-cuda9.2
dist: xenial
language: python
before_deploy:
- ./scripts/build_gpu_wheel.sh
- name: ubuntu-cuda10.1
env:
- CUDA=10.1.105-1
- CUDA_SHORT=10.1
- UBUNTU_VERSION=ubuntu1804
- BUILD_TAG=-cuda10.1
dist: xenial
language: python
before_deploy:
- ./scripts/build_gpu_wheel.sh
- 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
before_deploy:
- ./scripts/build_gpu_wheel.sh
- name: ubuntu-cpu
env:
- BUILD_TAG=-cpu
dist: bionic
language: python
before_deploy:
- ./scripts/build_cpu_wheel.sh
<<: *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
before_deploy:
- ./scripts/build_cpu_wheel.sh
<<: *build_cpu
- name: macos-cpu
os: osx
language: bash
env:
- BUILD_TAG=-cpu
before_deploy:
- ./scripts/build_cpu_wheel.sh
<<: *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}
Expand Down

0 comments on commit f604b42

Please sign in to comment.