Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

Commit

Permalink
Updated blacklist structure and pulse script (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreea Matei committed Oct 1, 2014
1 parent c98e5e3 commit 90b7c88
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 160 deletions.
168 changes: 12 additions & 156 deletions config/production/release.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,84 +73,12 @@
},
"by_branch": {
"release-mozilla-beta": {
"locales": [
"ach",
"af",
"an",
"ar",
"as",
"ast",
"be",
"bg",
"bn-BD",
"bn-IN",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en-GB",
"en-US",
"en-ZA",
"eo",
"es-CL",
"es-ES",
"es-MX",
"et",
"eu",
"fi",
"fr",
"fy-NL",
"ga-IE",
"gd",
"gl",
"gu-IN",
"he",
"hi-IN",
"hr",
"hu",
"hy-AM",
"id",
"is",
"it",
"ja",
"ja-JP-mac",
"kk",
"km",
"kn",
"ko",
"lt",
"lv",
"mk",
"ml",
"mr",
"nb-NO",
"nl",
"nn-NO",
"pl",
"pt-BR",
"pt-PT",
"rm",
"ro",
"ru",
"si",
"sk",
"sl",
"sq",
"sr",
"sv-SE",
"ta",
"te",
"th",
"tr",
"uk",
"vi",
"zh-CN",
"zh-TW"
],
"blacklist": {
"locales": [
"az",
"ku"
]
},
"testruns": [
"functional",
"remote"
Expand Down Expand Up @@ -183,84 +111,12 @@
}
},
"release-mozilla-release": {
"locales": [
"ach",
"af",
"an",
"ar",
"as",
"ast",
"be",
"bg",
"bn-BD",
"bn-IN",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en-GB",
"en-US",
"en-ZA",
"eo",
"es-CL",
"es-ES",
"es-MX",
"et",
"eu",
"fi",
"fr",
"fy-NL",
"ga-IE",
"gd",
"gl",
"gu-IN",
"he",
"hi-IN",
"hr",
"hu",
"hy-AM",
"id",
"is",
"it",
"ja",
"ja-JP-mac",
"kk",
"km",
"kn",
"ko",
"lt",
"lv",
"mk",
"ml",
"mr",
"nb-NO",
"nl",
"nn-NO",
"pl",
"pt-BR",
"pt-PT",
"rm",
"ro",
"ru",
"si",
"sk",
"sl",
"sq",
"sr",
"sv-SE",
"ta",
"te",
"th",
"tr",
"uk",
"vi",
"zh-CN",
"zh-TW"
],
"blacklist": {
"locales": [
"az",
"ku"
]
},
"testruns": [
"functional",
"remote"
Expand Down
8 changes: 4 additions & 4 deletions pulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ def on_build(self, data):
target_platform = self.get_platform_identifier(data['platform'])

# Check locale restrictions and stop processing if locale is not wanted
if target_branch['blacklist'] and \
data['locale'] in target_branch['blacklist']:
if 'blacklist' in target_branch and \
data['locale'] in target_branch['blacklist']['locales']:
return

# If no blacklist present, process the whitelist
if not target_branch['blacklist'] and target_branch['locales'] and \
# Process the whitelist if one is present
if 'locales' in target_branch and \
data['locale'] not in target_branch['locales']:
return

Expand Down

0 comments on commit 90b7c88

Please sign in to comment.