Repository: cordova-medic Updated Branches: refs/heads/master 4767f52d4 -> 0ba57fd97
CB-8091 Trigger build of Windows and WP8 platforms on commits to plugin and tools repositories Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/1cf7ef4b Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/1cf7ef4b Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/1cf7ef4b Branch: refs/heads/master Commit: 1cf7ef4be4a1e8e22d1fd683b6c3d0f12675b442 Parents: 4767f52 Author: maria.bukharina <[email protected]> Authored: Thu Nov 27 18:09:26 2014 +0300 Committer: maria.bukharina <[email protected]> Committed: Thu Nov 27 18:09:26 2014 +0300 ---------------------------------------------------------------------- master.cfg | 29 ++++++++--------------------- repos.json | 6 +++--- 2 files changed, 11 insertions(+), 24 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/1cf7ef4b/master.cfg ---------------------------------------------------------------------- diff --git a/master.cfg b/master.cfg index 47b35c6..0bf05ed 100644 --- a/master.cfg +++ b/master.cfg @@ -93,36 +93,23 @@ branches = {} # periodically fetches from a remote git repository and processes any changes -def listen_for_source_change(repo_url, project, category, branches): +def listen_for_source_change(repo_url, project, branches): if (git_bin == ""): c['change_source'].append( - GitPoller(repo_url, project=project, category=category, branches=branches, pollinterval=polltime)) + GitPoller(repo_url, project=project, branches=branches, pollinterval=polltime)) else: c['change_source'].append( - GitPoller(repo_url, gitbin=git_bin, project=project, category=category, branches=branches, pollinterval=polltime)) + GitPoller(repo_url, gitbin=git_bin, project=project, branches=branches, pollinterval=polltime)) for jrepo in json_repos['repos']: - cat = str(jrepo['category']) title = str(jrepo["title"]) repo_url = str(jrepo['repo']) - if cat == "PLUGIN": - listen_for_source_change(repo_url, cat, cat, getBranches([jrepo['release'], jrepo['current']])) - - elif not (cat == "PLATFORM"): - repos[title] = repo_url - branches[title] = str(jrepo['current']) - listen_for_source_change(repo_url, cat, cat, getBranches([jrepo['release'], jrepo['current']])) + title = str(jrepo["title"]) + repo_url = str(jrepo['repo']) + repos[title] = repo_url + branches[title] = str(jrepo['current']) - else: - repos[title] = repo_url - branches[title] = str(jrepo['current']) - if (build_android and title == "ANDROID" - or build_ios and title == "IOS" - or build_wp8 and title == "WP8" - or build_windows and title == "WINDOWS" - or build_blackberry and title == "BLACKBERRY"): - - listen_for_source_change(repo_url, title, 'PLATFORM', getBranches([jrepo['release'], jrepo['current']])) + listen_for_source_change(repo_url, str(jrepo['category']), getBranches([jrepo['release'], jrepo['current']])) c['change_source'].append(pb.PBChangeSource(port=9999, user='Cordova', passwd='Cordova')) http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/1cf7ef4b/repos.json ---------------------------------------------------------------------- diff --git a/repos.json b/repos.json index 174cf14..4721e9f 100644 --- a/repos.json +++ b/repos.json @@ -16,7 +16,7 @@ }, { "title" : "Android Build Windows", - "categories" : ["ANDROID","CLI"], + "categories" : ["ANDROID","CLI","PLUGIN","COHO","MSPEC","TESTMASTER","JS"], "branch" : "master", "builder": "AndroidWin", "platform": "android" @@ -38,14 +38,14 @@ , { "title" : "Windows Phone8 master", - "categories" : ["WP8"], + "categories" : ["WP8","CLI","PLUGIN","COHO","MSPEC","TESTMASTER","JS"], "branch" : "master", "builder": ["WP8", "WP8_vs2012_win8"], "platform": "wp8" }, { "title" : "Windows 8 master", - "categories" : ["WINDOWS"], + "categories" : ["WINDOWS","CLI","PLUGIN","COHO","MSPEC","TESTMASTER","JS"], "branch" : "master", "builder": ["Windows", "Windows8_vs2012_win8"], "platform": "windows" --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
