| 1 |
os: |
| 2 |
- Visual Studio 2017 |
| 3 |
- Visual Studio 2019 |
| 4 |
|
| 5 |
cache: |
| 6 |
- '%LOCALAPPDATA%\pip\Cache' |
| 7 |
|
| 8 |
# fetch repository as zip archive |
| 9 |
shallow_clone: true |
| 10 |
|
| 11 |
environment: |
| 12 |
global: |
| 13 |
WIN_SDK_ROOT: "C:\\Program Files\\Microsoft SDKs\\Windows" |
| 14 |
|
| 15 |
matrix: |
| 16 |
# Python 3.9 |
| 17 |
- PYTHON_DIR: "C:\\Python39-x64" |
| 18 |
|
| 19 |
# Python 3.10 |
| 20 |
- PYTHON_DIR: "C:\\Python310-x64" |
| 21 |
|
| 22 |
# Python 3.11 |
| 23 |
- PYTHON_DIR: "C:\\Python311-x64" |
| 24 |
|
| 25 |
# Python 3.12 |
| 26 |
- PYTHON_DIR: "C:\\Python312-x64" |
| 27 |
|
| 28 |
matrix: |
| 29 |
exclude: |
| 30 |
- os: Visual Studio 2017 |
| 31 |
PYTHON_DIR: "C:\\Python39-x64" |
| 32 |
- os: Visual Studio 2017 |
| 33 |
PYTHON_DIR: "C:\\Python310-x64" |
| 34 |
|
| 35 |
install: |
| 36 |
- "SET PATH=%PYTHON_DIR%;%PYTHON_DIR%\\Scripts;%PATH%" |
| 37 |
|
| 38 |
# Install the build and runtime dependencies of the project |
| 39 |
- "python -m pip install --upgrade pip" |
| 40 |
- "pip install wheel" |
| 41 |
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017") { pip install --trusted-host www.edna-site.org --upgrade -r .\\ci\\requirement_appveyor_2017.txt } |
| 42 |
- ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2019") { pip install --trusted-host www.edna-site.org --upgrade -r .\\ci\\requirement_appveyor_2019.txt } |
| 43 |
|
| 44 |
# Print Python info |
| 45 |
- "python ci\\info_platform.py" |
| 46 |
- "pip freeze" |
| 47 |
|
| 48 |
# Build |
| 49 |
- "python setup.py build --no-openmp" |
| 50 |
- "python setup.py bdist_wheel bdist_msi" |
| 51 |
- ps: "ls dist" |
| 52 |
|
| 53 |
# Install the generated wheel package to test it |
| 54 |
- "pip install --pre --no-index --find-links dist/ freesas" |
| 55 |
- "pip freeze" |
| 56 |
|
| 57 |
# Not a .NET project, build is done in the install step instead |
| 58 |
build: false |
| 59 |
|
| 60 |
test_script: |
| 61 |
#Unit tests |
| 62 |
- "python setup.py build test" |
| 63 |
- "python run_tests.py" |
| 64 |
|
| 65 |
#end to end tests |
| 66 |
- "mkdir empty" |
| 67 |
- "cd empty" |
| 68 |
- "pip install -r ../e2etest/requirements_e2e.txt" |
| 69 |
- "python ../e2etest/e2etest.py" |
| 70 |
|
| 71 |
artifacts: |
| 72 |
# Archive the generated wheel package in the ci.appveyor.com build report. |
| 73 |
- path: dist\* |