-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathscikit-ci.yml
67 lines (57 loc) · 2.12 KB
/
scikit-ci.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
schema_version: "0.5.0"
before_install:
appveyor:
environment:
PATH: $<PYTHON_DIR>;$<PYTHON_DIR>\\Scripts;$<PATH>
commands:
- python ../addons/appveyor/patch_vs2008.py
circle:
environment:
PATH: /opt/python/$<MANYLINUX_PYTHON>/bin:$<PATH>
# Required to build cryptography wheel from source for cp37-cp37 when using manylinux-x86
CFLAGS: -I/usr/local/ssl/include -L/usr/local/ssl/lib
travis:
osx:
environment:
# See https://scikit-build.readthedocs.io/en/latest/generators.html#libstdc-vs-libc
CPPFLAGS: "-stdlib=libstdc++"
PATH: $<HOME>/.pyenv/versions/$<PYTHON_VERSION>/bin:$<PATH>
SETUP_BDIST_WHEEL_ARGS: --plat-name macosx-10.13
commands:
- python ../addons/travis/install_pyenv.py
install:
commands:
- python -c "import sys; print(sys.version)"
- python -m pip install --disable-pip-version-check --upgrade pip
- pip install git+https://github.com/jcfr/wheeltools.git@wheeltools-2018-10-28-a2f174d0e
- pip install -U -r requirements-dev.txt
before_build:
commands:
- flake8
build:
commands:
# Built distribution (wheel)
- python setup.py --hide-listing bdist_wheel $<SETUP_BDIST_WHEEL_ARGS> -- $<SETUP_CMAKE_ARGS>
circle:
commands:
- |
# Since there are no external shared libraries to bundle into the wheels
# this step will fixup the wheel switching from 'linux' to 'manylinux' tag
for whl in dist/*$(python -c "import wheel.pep425tags as w; print(w.get_platform())").whl; do
auditwheel repair $whl -w ./dist/
rm $whl
done
test:
commands:
# Convert to generic platform wheel
- python: |
import glob, sys
sys.path.insert(0, "./scripts")
from convert_to_generic_platform_wheel import convert_to_generic_platform_wheel
wheels = glob.glob("dist/*.whl")
for wheel in wheels:
convert_to_generic_platform_wheel(wheel, remove_original=True)
- python setup.py test
#after_test:
# commands:
# - codecov -X gcov --required --file ./tests/coverage.xml