1import sys
2
3MULTI_REPO = "releases/mozilla-beta"
4EXES = {}
5if sys.platform.startswith("linux"):
6    EXES = {
7        # Get around the https warnings
8        "hg": ["/usr/local/bin/hg", "--config", "web.cacerts=/etc/pki/tls/certs/ca-bundle.crt"],
9        "hgtool.py": ["/usr/local/bin/hgtool.py"],
10    }
11
12config = {
13    "log_name": "l10n_bumper",
14    "log_type": "multi",
15    "exes": EXES,
16
17    "gecko_pull_url": "https://hg.mozilla.org/{}".format(MULTI_REPO),
18    "gecko_push_url": "ssh://hg.mozilla.org/{}".format(MULTI_REPO),
19
20    "hg_user": "L10n Bumper Bot <release+l10nbumper@mozilla.com>",
21    "ssh_key": "~/.ssh/ffxbld_rsa",
22    "ssh_user": "ffxbld",
23
24    "vcs_share_base": "/builds/hg-shared",
25    "version_path": "browser/config/version.txt",
26    "status_path": ".l10n_bumper_status",
27
28    "bump_configs": [{
29        "path": "mobile/locales/l10n-changesets.json",
30        "format": "json",
31        "name": "Fennec l10n changesets",
32        "revision_url": "https://l10n.mozilla.org/shipping/l10n-changesets?av=fennec%(MAJOR_VERSION)s",
33        "platform_configs": [{
34            "platforms": ["android-multilocale"],
35            "path": "mobile/android/locales/maemo-locales"
36        }],
37    }, {
38        "path": "browser/locales/l10n-changesets.json",
39        "format": "json",
40        "name": "Firefox l10n changesets",
41        "revision_url": "https://l10n.mozilla.org/shipping/l10n-changesets?av=fx%(MAJOR_VERSION)s",
42        "ignore_config": {
43            "ja": ["macosx64", "macosx64-devedition"],
44            "ja-JP-mac": [
45                "linux", "linux-devedition", "linux64", "linux64-devedition",
46                "win32", "win32-devedition", "win64", "win64-devedition",
47                "win64-aarch64", "win64-aarch64-devedition",
48            ],
49        },
50        "platform_configs": [{
51            "platforms": [
52                "linux", "linux-devedition", "linux64", "linux64-devedition",
53                "macosx64", "macosx64-devedition", "win32", "win32-devedition",
54                "win64", "win64-devedition", "win64-aarch64", "win64-aarch64-devedition",
55            ],
56            "path": "browser/locales/shipped-locales",
57            "format": "shipped-locales",
58        }],
59    }],
60}
61