-
Notifications
You must be signed in to change notification settings - Fork 10
/
appveyor.yml
89 lines (69 loc) · 2.22 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
os:
- Visual Studio 2019
cache:
- '%LOCALAPPDATA%\pip\Cache'
# fetch repository as zip archive
shallow_clone: true
environment:
global:
WIN_SDK_ROOT: "C:\\Program Files\\Microsoft SDKs\\Windows"
VENV_BUILD_DIR: "venv_build"
VENV_TEST_DIR: "venv_test"
matrix:
# Python 3.6
# - PYTHON_DIR: "C:\\Python36-x64"
# Python 3.11
- PYTHON_DIR: "C:\\Python312-x64"
branches:
only:
- master
install:
# Add Python to PATH
- "SET PATH=%PYTHON_DIR%;%PYTHON_DIR%\\Scripts;%PATH%"
# Upgrade distribution modules
# Disabled as pip uprade fails
# - "pip install --upgrade setuptools"
- "python -m pip install --upgrade pip"
# Install virtualenv
- "pip install virtualenv"
- "virtualenv --version"
build_script:
# Create build virtualenv
- "virtualenv --clear %VENV_BUILD_DIR%"
- "%VENV_BUILD_DIR%\\Scripts\\activate.bat"
# Install build dependencies (should I try to install cython?)
- "pip install wheel"
#- "pip install --trusted-host www.edna-site.org --find-links http://www.edna-site.org/pub/wheelhouse/ numpy"
- "pip install numpy"
# Print Python info
- "python ci\\info_platform.py"
- "pip freeze"
# Build
- "pip install build"
- "python -m build"
- ps: "ls dist"
# Leave build virtualenv
- "%VENV_BUILD_DIR%\\Scripts\\deactivate.bat"
- "rmdir %VENV_BUILD_DIR% /s /q"
test_script:
# Create test virtualenv
- "virtualenv --clear %VENV_TEST_DIR%"
- "%VENV_TEST_DIR%\\Scripts\\activate.bat"
# Install the generated wheel package to test it
#- "pip install --pre --find-links dist/ --trusted-host www.edna-site.org --find-links http://www.edna-site.org/pub/wheelhouse/ fisx"
- "pip install numpy"
- "FOR %%F IN (dist\\fisx*.*) DO (
pip install --pre %%F
)"
# Print Python info
- "python ci\\info_platform.py"
- "pip freeze"
# Run the tests
- "cd .."
- "python -m fisx.tests.testAll"
# Leave test virtualenv
- "fisx\\%VENV_TEST_DIR%\\Scripts\\deactivate.bat"
- "rmdir fisx\\%VENV_TEST_DIR% /s /q"
artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: dist\*