testing/mozharness/configs/developer_config.py
author Henrik Skupin <mail@hskupin.info>
Thu, 24 Sep 2015 22:34:53 +0200
changeset 264325 98398ef6d9872bf8b017a4fca0ca844441f16616
parent 251328 9e6987be9b33ea19ce28644c4f949e2f8b731f21
child 264438 254536401af29e174e0bb28bd6a90bf235e205f6
permissions -rw-r--r--
Bug 1208184 - Make download of tooltool.py customizable via a config setting. r=jlund DONTBUILD

"""
This config file can be appended to any other mozharness job
running under treeherder. The purpose of this config is to
override values that are specific to Release Engineering machines
that can reach specific hosts within their network.
In other words, this config allows you to run any job
outside of the Release Engineering network

Using this config file should be accompanied with using
--test-url and --installer-url where appropiate
"""

import os
LOCAL_WORKDIR = os.path.expanduser("~/.mozilla/releng")

config = {
    # Developer mode values
    "developer_mode": True,
    "local_workdir": LOCAL_WORKDIR,
    "replace_urls": [
        ("http://pvtbuilds.pvt.build", "https://pvtbuilds"),
    ],

    # General local variable overwrite
    "exes": {
        "hgtool.py": os.path.join(LOCAL_WORKDIR, "hgtool.py"),
        "gittool.py": os.path.join(LOCAL_WORKDIR, "gittool.py"),
    },
    "env": {
        "PIP_TRUSTED_HOST": "pypi.pub.build.mozilla.org",
    },

    # Pip
    "find_links": ["http://pypi.pub.build.mozilla.org/pub"],
    "pip_index": False,

    # Talos related
    "python_webserver": True,
    "virtualenv_path": '%s/build/venv' % os.getcwd(),

    # Tooltool related
    "download_tooltool": True,
    "tooltool_cache": os.path.join(LOCAL_WORKDIR, "builds/tooltool_cache"),
    "tooltool_cache_path": os.path.join(LOCAL_WORKDIR, "builds/tooltool_cache"),

    # VCS tools
    "hgtool.py": 'http://hg.mozilla.org/build/puppet/raw-file/faaf5abd792e/modules/packages/files/hgtool.py',
    "gittool.py": 'http://hg.mozilla.org/build/puppet/raw-file/faaf5abd792e/modules/packages/files/gittool.py',

    # Android related
    "host_utils_url": "https://api.pub.build.mozilla.org/tooltool/sha512/372c89f9dccaf5ee3b9d35fd1cfeb089e1e5db3ff1c04e35aa3adc8800bc61a2ae10e321f37ae7bab20b56e60941f91bb003bcb22035902a73d70872e7bd3282",
}