Debian Codegraph @

testing/mozharness/configs/raptor/windows_external_browser_config.py

raw
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 import os
6 import socket
7 import sys
8
9 PYTHON = sys.executable
10 VENV_PATH = os.path.join(os.getcwd(), "build/venv")
11
12 PYWIN32 = "pywin32==306"
13
14 config = {
15 "log_name": "raptor",
16 "installer_path": "installer.exe",
17 "virtualenv_path": VENV_PATH,
18 "virtualenv_modules": [PYWIN32, "raptor", "mozinstall"],
19 "exes": {
20 "python": PYTHON,
21 "mozinstall": [
22 "%s/scripts/python" % VENV_PATH,
23 "%s/scripts/mozinstall-script.py" % VENV_PATH,
24 ],
25 "hg": os.path.join(os.environ["PROGRAMFILES"], "Mercurial", "hg"),
26 "tooltool.py": [
27 PYTHON,
28 os.path.join(os.environ["MOZILLABUILD"], "tooltool.py"),
29 ],
30 },
31 "title": socket.gethostname().split(".")[0],
32 "default_actions": [
33 "clobber",
34 "download-and-extract",
35 "populate-webroot",
36 "create-virtualenv",
37 "install-chromium-distribution",
38 "install",
39 "run-tests",
40 ],
41 "tooltool_cache": os.path.join("c:\\", "build", "tooltool_cache"),
42 "python3_manifest": {
43 "win32": "python3.manifest",
44 "win64": "python3_x64.manifest",
45 },
46 "env": {
47 # python3 requires C runtime, found in firefox installation; see bug 1361732
48 "PATH": "%(PATH)s;c:\\slave\\test\\build\\application\\firefox;"
49 },
50 "run_cmd_checks_enabled": True,
51 "preflight_run_cmd_suites": [
52 {
53 "name": "run mouse & screen adjustment script",
54 "cmd": [
55 sys.executable,
56 os.path.join(
57 os.getcwd(),
58 "mozharness",
59 "external_tools",
60 "mouse_and_screen_resolution.py",
61 ),
62 "--configuration-file",
63 os.path.join(
64 os.getcwd(),
65 "mozharness",
66 "external_tools",
67 "machine-configuration.json",
68 ),
69 "--platform",
70 "win10-hw",
71 ],
72 "architectures": ["32bit", "64bit"],
73 "halt_on_failure": True,
74 "enabled": True,
75 }
76 ],
77 }