-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
99 lines (92 loc) · 2.94 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
language: python
python:
- 3.6
dist: bionic
addons:
apt:
update: true
packages:
- cmake
- python3-dev python3-pip python3-tk python3-lxml python3-six python3-setuptools python3-wheel
install:
- pip3 install pytest
- python3 setup.py bdist_wheel --GPU_build False
- pip3 install ./dist/*.whl
script:
- pytest -q ./tests/tests.py
stages:
- test
# Only execute deployment stage on tagged commits, and from your repository
# (e.g. not PRs). Replace with your repo name.
- name: deploy
if: tag IS PRESENT AND repo = qureshizawar/CUDA-quartic-solver
# To only build tags that look like vX.Y.Z:
# if: tag =~ ^v\d+\.\d+\.\d+$ AND repo = CUDA-quartic-solver
jobs:
include:
- os: linux
language: shell
name: Test on linux
# Deploy source distribution
- stage: deploy
name: Deploy source distribution
install: skip
script: python3 setup.py sdist --GPU_build False --formats=gztar
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing dist/*.tar.gz
# Deploy on linux
- stage: deploy
name: Build and deploy Linux wheels
env:
#- CIBW_MANYLINUX_X86_64_IMAGE="manylinux1"
#- CIBW_BEFORE_BUILD="pip install cmake"
#- CIBW_BUILD=cp36*
- CIBW_BUILD: cp3?-*
#- CIBW_SKIP: cp27-* pp27-*
services: docker
install:
- python3 -m pip install cibuildwheel==1.4.1
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl
# Deploy on mac
- stage: deploy
name: Build and deploy macOS wheels
env:
#- CIBW_BEFORE_BUILD="pip install cmake"
#- CIBW_BUILD=cp36*
- CIBW_BUILD: cp3?-*
#- CIBW_SKIP: cp27-* pp27-*
os: osx
language: shell
install: python3 -m pip install cibuildwheel==1.4.1
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl
# Deploy on windows
- stage: deploy
name: Build and deploy Windows wheels
env:
#- CIBW_BEFORE_BUILD="pip install cmake"
- CIBW_BUILD=cp36*
#- CIBW_BUILD: cp3?-*
#- CIBW_SKIP: cp27-* pp27-*
os: windows
language: shell
before_install:
#- choco install cmake
- choco install python --version 3.6.0
- export PATH="/c/Python36:/c/Python36/Scripts:$PATH"
# make sure it's on PATH as 'python3'
- ln -s /c/Python36/python.exe /c/Python36/python3.exe
install: python3 -m pip install cibuildwheel==1.4.1
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl
env:
global:
- TWINE_USERNAME=__token__