summaryrefslogtreecommitdiffstats
path: root/testing/mozharness/configs/releng_infra_configs/testers.py
blob: 7f0ce2a7f65afd57669af87f6fe66ff84e855eab (plain)
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
# This config file has generic values needed for any job and any platform running
# on Release Engineering machines inside the VPN
import os

import mozharness

from mozharness.base.script import platform_name

external_tools_path = os.path.join(
    os.path.abspath(os.path.dirname(os.path.dirname(mozharness.__file__))),
    'external_tools',
)

# These are values specific to each platform on Release Engineering machines
PYTHON_WIN32 = 'c:/mozilla-build/python27/python.exe'
# These are values specific to running machines on Release Engineering machines
# to run it locally on your machines append --cfg developer_config.py
PLATFORM_CONFIG = {
    'linux': {
        'exes': {
            'gittool.py': os.path.join(external_tools_path, 'gittool.py'),
            'virtualenv': ['/tools/buildbot/bin/python', '/tools/misc-python/virtualenv.py'],
        },
        'env': {
            'DISPLAY': ':0',
            'PATH': '%(PATH)s:' + external_tools_path,
        }
    },
    'linux64': {
        'exes': {
            'gittool.py': os.path.join(external_tools_path, 'gittool.py'),
            'virtualenv': ['/tools/buildbot/bin/python', '/tools/misc-python/virtualenv.py'],
        },
        'env': {
            'DISPLAY': ':0',
            'PATH': '%(PATH)s:' + external_tools_path,
        }
    },
    'macosx': {
        'exes': {
            'gittool.py': os.path.join(external_tools_path, 'gittool.py'),
            'virtualenv': ['/tools/buildbot/bin/python', '/tools/misc-python/virtualenv.py'],
        },
        'env': {
            'PATH': '%(PATH)s:' + external_tools_path,
        }
    },
    'win32': {
        "exes": {
            'gittool.py': [PYTHON_WIN32, os.path.join(external_tools_path, 'gittool.py')],
            # Otherwise, depending on the PATH we can pick python 2.6 up
            'python': PYTHON_WIN32,
            'virtualenv': [PYTHON_WIN32, 'c:/mozilla-build/buildbotve/virtualenv.py'],
        }
    }
}

config = PLATFORM_CONFIG[platform_name()]
# Generic values
config.update({
    "find_links": [
        "http://pypi.pvt.build.mozilla.org/pub",
        "http://pypi.pub.build.mozilla.org/pub",
    ],
    'pip_index': False,
    'virtualenv_path': 'venv',
})