forked from bxlab/bx-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (64 loc) · 2.12 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
language: python
cache: pip
os:
- linux
python:
- '2.7'
- '3.5'
stages:
- lint
- test
- name: deploy
if: tag IS present
env:
global:
- PYTHON=python
- TWINE_USERNAME=nsoranzo
- secure: 'kFoqHCxat/ETS2SUc2q9M7YvzvnlR7sgHmx7SRvVgTyLkk1efpJ++YPwDBEYZ3v+GLf2nRfc20GxtZkH6ey1f//aj4CT2q2CJiUsKAlkFAOHzKo/3mTLl/WDHkPAr9MW7AdnbNk6W8sIPCKqFsyKL2FTH70dBcxa1e7trQ2RC64hnOOkt/tm2cQhj6sX0gROggN5QrpHE8tDZb9ugF0uf92L/CGxeClAebWgb7zVChHDMTNsmnOvWUF9m6LZOvkgFmuIeh70EPuOWh6LxU/n5JyevYIGO5vVDbjgfmNELlG2KUTm6dWeoyofcj6hUqYmQsmI1ATrf7ThY1+b6asQGy+Exp/76MBXiYRh+RgVKifwaZMOWehzfjDQvPYOGvf6rXOVGeVZ+nBkskr0HARsX1KnyDE+k+XPoP7zqvW6mCic9ZQ+IdQJtxMHOTxxFjuPAlunvaUqDNM9VP6YEWOI4UqIOO1nQh4E2zkPhXI2yY744q+BV/5+3HHqNQj1+5qFPoZeyDEuNXwgDCjrJ8i3hna/LTTvRigx6/YQL1PF/C30R4h/nkqp8ghA4VpNRPnQ8nOO+oD6AdN7Pswc3C4qGPEwoeqfNzEIR1KfEWzB7HsfTFbgyGFFNGuQ/P26DMK+kPBNZ6GhZ9wb5/xT226OA+ovcAmVGn/Hnt/qVaylXNk='
_deploy_common: &deploy_common
install:
- $PYTHON -m pip install cibuildwheel twine
matrix:
include:
- stage: lint
python: '3.5'
addons: {}
install:
- $PYTHON -m pip install flake8 flake8-import-order
script:
- flake8 .
- stage: deploy
python: '3.5'
services:
- docker
env: CIBW_BEFORE_BUILD="yum install -y zlib-devel && pip install Cython numpy"
<<: *deploy_common
script:
- cibuildwheel --output-dir dist
- $PYTHON -m pip install Cython nose numpy python-lzo six
- $PYTHON setup.py build_ext --inplace
- $PYTHON setup.py sdist
- twine check dist/*
- twine upload --skip-existing dist/*
- stage: deploy
os: osx
language: generic
env:
- PYTHON=python3
- CIBW_BEFORE_BUILD="pip install Cython numpy"
addons: {}
<<: *deploy_common
script:
- cibuildwheel --output-dir dist
- twine check dist/*
- twine upload --skip-existing dist/*
addons:
apt:
packages:
- liblzo2-dev
install:
- $PYTHON -m pip install Cython nose numpy python-lzo six
- $PYTHON setup.py build_ext --inplace
- $PYTHON setup.py install
script:
- nosetests