-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
50 lines (44 loc) · 1.08 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
dist: trusty
sudo: required
env:
- CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-8.0
_install: &_install
- . .travis.install
- pip install numpy auditwheel==1.4 setuptools twine
- python3 setup.py bdist_wheel
- auditwheel repair -w dist dist/*
- unzip dist/*manylinux*
- ldd libMHCUDA-*.data/purelib/libMHCUDA.so
_deploy: &_deploy
provider: script
script: twine upload dist/*manylinux* -u $PYPI_LOGIN -p $PYPI_PASS
skip_cleanup: true
on:
tags: true
matrix:
include:
- language: cpp
install:
- . .travis.install
- mkdir build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCUDA_TOOLKIT_ROOT_DIR=$CUDA_TOOLKIT_ROOT_DIR ..
- make -j2
script: skip
- language: python
python: 3.4
install: *_install
script: skip
deploy: *_deploy
- language: python
python: 3.5
install: *_install
script: skip
deploy: *_deploy
- language: python
python: 3.6
install: *_install
script: skip
deploy: *_deploy
notifications:
email: false