forked from PyTables/PyTables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
77 lines (62 loc) · 2.14 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
environment:
PACKAGE_NAME: tables
BUILD_DEPENDS: "numpy>=1.8.0 numexpr>=2.5.2 six cython bzip2"
TEST_DEPENDS: "numpy>=1.8.0 numexpr>=2.5.2 six mock"
# Make setup.py include conda specific dll's in wheel
BUILDWHEEL: True
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
# From: https://github.com/astropy/ci-helpers/blob/master/appveyor/windows_sdk.cmd
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci\\appveyor\\windows_sdk.cmd"
matrix:
# - PYTHON: "C:\\Miniconda"
# PYTHON_VERSION: "2.7"
# PYTHON_ARCH: "32"
- PYTHON: "C:\\Miniconda-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
HDF5_VERSION: "1.8"
# - PYTHON: "C:\\Miniconda-x64"
# PYTHON_VERSION: "2.7"
# PYTHON_ARCH: "64"
# HDF5_VERSION: "1.10"
- PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
HDF5_VERSION: "1.8"
- PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
HDF5_VERSION: "1.10"
install:
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit),
# as well as pip, conda-build, and the binstar CLI
#- powershell .\\ci\\appveyor\\install.ps1
- powershell .\\ci\\appveyor\\missing-headers.ps1
- "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
build_script:
- conda config --add channels conda-forge
- conda create --yes -n build_env python=%PYTHON_VERSION% %BUILD_DEPENDS%
- activate build_env
# Install HDF5 Library
# Add tomkooij channel for HDF5 v1.10 conda packages
- conda config --add channels http://conda.anaconda.org/tomkooij
- conda install --yes hdf5=%HDF5_VERSION%
# Build wheel
- "%CMD_IN_ENV% 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
- pt2to3 -h
- ptrepack -h
- ptdump -h
- pttree -h
artifacts:
- path: "dist\\*"