-
-
Notifications
You must be signed in to change notification settings - Fork 555
/
appveyor.yml
85 lines (82 loc) · 2.68 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
image:
- macos
- Ubuntu2004
- Ubuntu2204
- Visual Studio 2022
for:
-
matrix:
only:
- image: Visual Studio 2022
- job_name: Windows
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\" pythonnet bottle .[cef]"
test_script:
- cd tests
- powershell -File ./run.ps1
-
matrix:
only:
- image: Ubuntu2004
- job_name: QT
environment:
PYWEBVIEW_GUI: qt
DISPLAY: :99
QT_QPA_PLATFORM: offscreen
install:
- sudo apt-get update -q
- 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
- ./run.sh
after_test:
- killall Xvfb
-
matrix:
only:
- image: Ubuntu2204
- job_name: GTK
environment:
PYWEBVIEW_GUI: gtk
DISPLAY: :99
install:
- sudo apt-get update -q
- 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
- python3 -m pip install --upgrade setuptools==70.0.0
- python3 -m pip install proxy_tools pytest bottle typing_extensions pygobject 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
-
- ./run.sh
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
- ./run.sh
build: off