Debian Codegraph @

testing/mozharness/configs/raptor/windows_vm_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 },
27 "title": socket.gethostname().split(".")[0],
28 "default_actions": [
29 "clobber",
30 "download-and-extract",
31 "populate-webroot",
32 "create-virtualenv",
33 "install-chromium-distribution",
34 "install",
35 "run-tests",
36 ],
37 "tooltool_cache": os.path.join("c:\\", "build", "tooltool_cache"),
38 "python3_manifest": {
39 "win32": "python3.manifest",
40 "win64": "python3_x64.manifest",
41 },
42 "env": {
43 # python3 requires C runtime, found in firefox installation; see bug 1361732
44 "PATH": "%(PATH)s;c:\\slave\\test\\build\\application\\firefox;"
45 },
46 }