File: appveyor.yml

package info (click to toggle)
python-pywebview 6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,452 kB
  • sloc: python: 10,921; javascript: 3,250; java: 522; cs: 130; sh: 15; makefile: 3; xml: 1
file content (109 lines) | stat: -rw-r--r-- 3,595 bytes parent folder | download
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
image:
  - Visual Studio 2022
  - Ubuntu2004
  - Ubuntu2204
  - macos
for:
  -
    matrix:
      only:
        - image: Visual Studio 2022
        - job_name: EdgeChromium
    environment:
      PYTHON: "C:\\Python37-x64"
      PYTHON_VERSION: "3.7.x"
      PYTHON_ARCH: "64"
      APPVEYOR_BAKE_IMAGE: pywebview-visualstudio2022
    install:
      - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
      - "choco install webview2-runtime --ignore-checksums"
      - "python --version"
      - "python -c \"import struct; print(struct.calcsize('P') * 8)\""

      - "%CMD_IN_ENV% pip install -r requirements.txt"
      - "%CMD_IN_ENV% pip install \"pytest>=4.3.0\""
    test_script:
      - cd tests
      - python -m pytest -s
  -
    matrix:
      only:
        - image: Visual Studio 2022
        - job_name: CEF
    environment:
      PYTHON: "C:\\Python37-x64"
      PYTHON_VERSION: "3.7.x"
      PYTHON_ARCH: "64"
      APPVEYOR_BAKE_IMAGE: pywebview-visualstudio2022
      PYWEBVIEW_GUI: "cef"
      PYWEBVIEW_LOG: "error"
    install:
      - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
      - "choco install webview2-runtime --ignore-checksums"
      - "python --version"
      - "python -c \"import struct; print(struct.calcsize('P') * 8)\""

      - "%CMD_IN_ENV% pip install -r requirements.txt"
      - "%CMD_IN_ENV% pip install \"pytest>=4.3.0\" cefpython3"
    test_script:
      - cd tests
      - python -m pytest
  -
    matrix:
      only:
        - image: Ubuntu2004
        - job_name: QT
    environment:
      PYWEBVIEW_GUI: qt
      DISPLAY: :99
      QT_QPA_PLATFORM: offscreen
      PYWEBVIEW_LOG: "error"
    install:
      - sudo apt-get update -q --allow-releaseinfo-change
      - sudo apt-get install --no-install-recommends -y xvfb python3-pyqt5 python3-pyqt5.qtwebkit libqt5webkit5-dev python3-pep8 pyflakes python3-pytest
      - python3 -m pip install --upgrade setuptools==70.0.0
      - python3 -m pip install proxy_tools pytest bottle typing_extensions QtPy PyQt5 pyqtwebengine
    before_test:
      - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset && sleep 3;
    test_script:
      - cd tests
      - python3 -m pytest -s
    after_test:
      - killall Xvfb
  -
    matrix:
      only:
        - image: Ubuntu2204
        - job_name: GTK
    environment:
      PYWEBVIEW_GUI: gtk
      PYWEBVIEW_LOG: "error"
      DISPLAY: :99
    install:
      - sudo apt-get update -q --allow-releaseinfo-change
      - sudo apt-get install --no-install-recommends -y xvfb gir1.2-gtk-3.0 gir1.2-webkit2-4.0 python3-gi python3-gi-cairo python3-pep8 pyflakes3 python3-pytest libgirepository1.0-dev
      - python3 -m pip install --upgrade setuptools==70.0.0
      - python3 -m pip install proxy_tools pytest bottle typing_extensions pygobject==3.50.0 importlib_metadata
    before_test:
      - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset && sleep 3;
    test_script:
      - cd tests
      - python3 -m pytest -s
    after_test:
      - killall Xvfb
  -
    matrix:
      only:
        - image: macos
        - job_name: macOS
    artifacts:
      - path: /tmp/screenshots
        name: Screenshots
    install:
      - python3 -m pip install --user pyobjc pytest proxy_tools bottle typing_extensions pillow
    test_script:
      - cd tests
      - python3 -m pytest


build: off