File: appveyor.yml

package info (click to toggle)
python-fabio 2024.9.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,860 kB
  • sloc: python: 21,160; ansic: 1,126; lisp: 450; makefile: 253; sh: 244
file content (81 lines) | stat: -rw-r--r-- 1,945 bytes parent folder | download | duplicates (2)
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
version: 2023-10-dev{build}

# fetch repository as zip archive
shallow_clone: true

notifications:
- provider: Email
  to:
  - silx-ci@edna-site.org
  subject: '[CI] appveyor'
  on_build_success: false
  on_build_failure: false
  on_build_status_changed: true

os:
    - Visual Studio 2019

cache:
    - '%LOCALAPPDATA%\pip\Cache'
    
environment:
    global:
        WIN_SDK_ROOT: "C:\\Program Files\\Microsoft SDKs\\Windows"
        VENV_BUILD_DIR: "venv_build"
        VENV_TEST_DIR: "venv_test"

    matrix:
        # Python 3.7
        - PYTHON_DIR: "C:\\Python37-x64"
          PYTHON_ARCH: "64"

        # Python 3.8
        #- PYTHON_DIR: "C:\\Python38-x64"
        #  PYTHON_ARCH: "64"

        # Python 3.9
        - PYTHON_DIR: "C:\\Python39-x64"
          PYTHON_ARCH: "64"

        # Python 3.10
        - PYTHON_DIR: "C:\\Python310-x64"
          PYTHON_ARCH: "64"

        # Python 3.11        
        - PYTHON_DIR: "C:\\Python311-x64"
          PYTHON_ARCH: "64"


install:
  # Add Python to PATH
  - "SET PATH=%PYTHON_DIR%;%PYTHON_DIR%\\Scripts;%PATH%"

  # Check that we have the expected version and architecture for Python
  - "python --version"
  - "python -c \"print(tuple.__itemsize__*8)\""

  # Upgrade/install distribution modules
  - "python -m pip install --upgrade pip"

  # Install the build and runtime dependencies of the project.
  - "pip install --trusted-host www.silx.org -r ci\\requirements_appveyor.txt"

build_script:
  - "meson --version"
  - "python run_tests.py"
  - "python -m build --wheel"
  - ps: "ls dist"
  # Install the generated wheel package to test it
  - "pip install --pre --find-links dist/  --no-cache-dir --no-index fabio"

test_script:
  # Test the installed package using the project script
  - "python run_tests.py --installed"

  # Move back to the project folder
  - "cd .."

artifacts:
  # Archive the generated wheel package in the ci.appveyor.com build report.
  - path: dist\*