forked from PyTables/PyTables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
53 lines (42 loc) · 1.43 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
environment:
PACKAGE_NAME: tables
BUILD_DEPENDS: "numpy>=1.8.0 numexpr>=2.5.2 cython bzip2 hdf5"
TEST_DEPENDS: "numpy>=1.8.0 numexpr>=2.5.2"
# 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:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
install:
- 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
# 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\\*"