forked from brentp/cyvcf2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·72 lines (68 loc) · 2.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: python
dist: bionic
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
addons:
homebrew:
packages:
- openssl
install:
- sudo apt-get install libcurl4-openssl-dev
- pip install -r requirements.txt
- cd htslib
- autoheader && autoconf
- ./configure --enable-s3 --disable-lzma --disable-bz2
- make
- cd ..
- CYTHONIZE=1 python setup.py install
script:
- python setup.py test
jobs:
include:
- os: linux
python: "3.7"
env:
- CIBW_SKIP="pp* cp27-* cp34-* *i686*"
- CIBW_MANYLINUX_X86_64_IMAGE=manylinux2014
- CIBW_BEFORE_BUILD_LINUX="{project}/ci/linux-deps"
- CIBW_TEST_COMMAND="{project}/ci/test"
- CIBW_ENVIRONMENT="CYTHONIZE=1 LDFLAGS='-L/usr/lib64/openssl11' CPPFLAGS='-I/usr/include/openssl11' C_INCLUDE_PATH='/root/include' LIBRARY_PATH='/root/lib'"
services: docker
install:
- python3 -m pip install cibuildwheel
script:
- python3 -m cibuildwheel --output-dir wheelhouse
after_success:
- |
if [ "${TRAVIS_TAG:-}" != "" ]; then
python3 -m pip install twine -U
python3 -m twine upload --repository testpypi --skip-existing wheelhouse/*
python3 setup.py sdist
python3 -m twine upload --repository testpypi --skip-existing dist/*
fi
- os: osx
osx_image: xcode10.2
language: shell
env:
- CIBW_SKIP="pp* cp27-* cp34-* *i686*"
- CIBW_MANYLINUX_X86_64_IMAGE=manylinux2014
- CIBW_BEFORE_BUILD_MACOS="{project}/ci/osx-deps"
- CIBW_TEST_COMMAND="{project}/ci/test"
- CIBW_ENVIRONMENT="CYTHONIZE=1"
- LDFLAGS="-L/usr/local/opt/[email protected]/lib"
- CPPFLAGS="-I/usr/local/opt/[email protected]/include"
- PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"
install:
- python3 -m pip install cibuildwheel
script:
- python3 -m cibuildwheel --output-dir wheelhouse
after_success:
- |
if [ "${TRAVIS_TAG:-}" != "" ]; then
python3 -m pip install twine -U
python3 -m twine upload --repository testpypi --skip-existing wheelhouse/*
fi