-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
95 lines (79 loc) · 2.7 KB
/
appveyor.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
environment:
global:
REPO_DIR: pytables
PACKAGE_NAME: tables
BUILD_COMMIT: v3.6.1 # Remember to update this for every new PyTables release!
BUILDWHEEL: "True" # trigger setup.py to include zlib.dll
BUILD_DEPENDS: "hdf5 numpy>=1.9.3 numexpr>=2.6.2 six cython bzip2"
TEST_DEPENDS: "numpy>=1.9.3 numexpr>=2.6.2 six>=1.9.0 mock"
DISABLE_AVX2: "True" # do not include AVX2 in this build
HDF5_VERSION: 1.10.5
WHEELHOUSE_UPLOADER_USERNAME: travis-worker
WHEELHOUSE_UPLOADER_SECRET:
secure:
9s0gdDGnNnTt7hvyNpn0/ZzOMGPdwPp2SewFTfGzYk7uI+rdAN9rFq2D1gAP4NQh
matrix:
- PYTHON: "C:\\Miniconda35"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Miniconda36"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Miniconda37"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
# We always use a 64-bit machine, but can build x86 distributions
# with the PYTHON_ARCH variable.
platform:
- x64
matrix:
fast_finish: true
install:
# Fetch submodules
- git submodule update --init --recursive
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PYTHON%\Library\bin;%PATH%
- conda info
# Check that we have the expected version and architecture for Python
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
build_script:
# Install build requirements
- conda create --yes -n build_env python=%PYTHON_VERSION% %BUILD_DEPENDS%
- activate build_env
# FIXME update Cython for python 3.5
- pip install -U cython
# Additional pre install steps:
- set HDF5_DIR=%CONDA_PREFIX%\Library\
- set BZIP2_DIR=%CONDA_PREFIX%\Library\
- set LIBRARY_PATH=%HDF5_DIR%\lib
# build wheel:
- cd %REPO_DIR%
- git checkout %BUILD_COMMIT%
- python setup.py bdist_wheel
test_script:
# create test env
- conda create --yes -n test_env python=%PYTHON_VERSION% %TEST_DEPENDS%
- activate test_env
# install from wheel
- pip install --no-index --find-links dist/ %PACKAGE_NAME%
- cd ..
- python -m tables.tests.test_all
artifacts:
- path: "%REPO_DIR%\\dist\\*"
on_success:
# Upload the generated wheel package to Rackspace
# On Windows, Apache Libcloud cannot find a standard CA cert bundle so we
# disable the ssl checks.
- cd %REPO_DIR%
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload
--no-ssl-check --local-folder=dist --no-update-index wheels