| 1 |
version: 1.5.{build} |
| 2 |
|
| 3 |
image: |
| 4 |
- Visual Studio 2019 |
| 5 |
|
| 6 |
environment: |
| 7 |
|
| 8 |
NIX_VERSION: 1.4.1 |
| 9 |
DEPLOY_DIR: deploy |
| 10 |
NIX_DIR: C:\nix |
| 11 |
NIX_INCDIR: C:\nix\include |
| 12 |
NIX_LIBDIR: C:\nix\lib |
| 13 |
BOOST_INCDIR: C:\Libraries\boost_1_67_0\lib64-msvc-14.1 |
| 14 |
BOOST_LIBDIR: C:\Libraries\boost_1_67_0\lib64-msvc-14.1 |
| 15 |
|
| 16 |
NIX_APPVEYOR_ROOT: https://ci.appveyor.com/api/projects/G-Node/nix/artifacts/build |
| 17 |
|
| 18 |
|
| 19 |
matrix: |
| 20 |
- PYTHON: "C:/Python38-x64" |
| 21 |
- PYTHON: "C:/Python311-x64" |
| 22 |
|
| 23 |
init: |
| 24 |
- "ECHO %PYTHON% %vcvars% (%bits%)" |
| 25 |
- ps: $env:PATH = "$env:PYTHON;$env:PATH;C:\Program Files\7-Zip;$env:NIX_DIR\bin" |
| 26 |
- python -c "import sys;print('Python version is {}'.format(sys.version))" |
| 27 |
|
| 28 |
install: |
| 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 |
- python -m pip install certifi |
| 55 |
- python -m pip install -U pip wheel |
| 56 |
- python -m pip install numpy h5py pytest-xdist scipy pillow matplotlib |
| 57 |
- ps: cd "$env:APPVEYOR_BUILD_FOLDER" |
| 58 |
- set DISTUTILS_USE_SDK="1" |
| 59 |
- set MSSdk="1" |
| 60 |
|
| 61 |
build_script: |
| 62 |
- python setup.py build |
| 63 |
|
| 64 |
test_script: |
| 65 |
|
| 66 |
|
| 67 |
- python setup.py test --addopts "-nauto" |
| 68 |
|
| 69 |
after_test: |
| 70 |
- ps: mkdir "$env:DEPLOY_DIR" |
| 71 |
- python setup.py bdist_wheel -d %DEPLOY_DIR% %withnix% |
| 72 |
|
| 73 |
artifacts: |
| 74 |
- path: $(DEPLOY_DIR)\* |
| 75 |
name: wheels |
| 76 |
|
| 77 |
on_finish: |
| 78 |
- ps: | |
| 79 |
if ($env:RDP -eq "yes") { |
| 80 |
$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) |
| 81 |
} |