This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1145583: Add lightsaber builder script to mozharness.
While lightsaber project is not merged in the main tree, we need to make some workarounds to build it into b2g images. As this is temporary, we create seperate scripts to remove lightsaber stuff int the future.
- Loading branch information
Wander Lairson Costa
committed
Apr 14, 2015
1 parent
f06967c
commit a7c4083
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python | ||
import os.path | ||
config = { | ||
"default_vcs": "tc-vcs", | ||
"default_actions": [ | ||
'checkout-sources', | ||
'checkout-lightsaber', | ||
'build', | ||
'make-updates', | ||
'prep-upload', | ||
'submit-to-balrog' | ||
], | ||
"balrog_credentials_file": "balrog_credentials", | ||
"nightly_build": True, | ||
"env": { | ||
"GAIA_OPTIMIZE": "1", | ||
"B2G_UPDATER": "1", | ||
"B2G_UPDATE_CHANNEL": "cypress", | ||
"LIGHTSABER": "1", | ||
"BOWER_FLAGS": "--allow-root", | ||
"B2G_PATH": "%(work_dir)s", | ||
"WGET_OPTS": "-c -q" | ||
}, | ||
"is_automation": True, | ||
"repo_remote_mappings": { | ||
'https://android.googlesource.com/': 'https://git.mozilla.org/external/aosp', | ||
'git://codeaurora.org/': 'https://git.mozilla.org/external/caf', | ||
'https://git.mozilla.org/b2g': 'https://git.mozilla.org/b2g', | ||
'git://github.com/mozilla-b2g/': 'https://git.mozilla.org/b2g', | ||
'git://github.com/mozilla/': 'https://git.mozilla.org/b2g', | ||
'https://git.mozilla.org/releases': 'https://git.mozilla.org/releases', | ||
'http://android.git.linaro.org/git-ro/': 'https://git.mozilla.org/external/linaro', | ||
'git://github.com/apitrace/': 'https://git.mozilla.org/external/apitrace', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env python | ||
|
||
from b2g_build import B2GBuild | ||
import os.path | ||
|
||
class B2GLightsaber(B2GBuild): | ||
all_actions = [ | ||
'clobber', | ||
'checkout-sources', | ||
'checkout-lightsaber', | ||
'get-blobs', | ||
'update-source-manifest', | ||
'build', | ||
'build-symbols', | ||
'make-updates', | ||
'build-update-testdata', | ||
'prep-upload', | ||
'upload', | ||
'make-socorro-json', | ||
'upload-source-manifest', | ||
'submit-to-balrog', | ||
] | ||
|
||
def __init__(self, require_config_file=False, config={}, | ||
all_actions=all_actions, | ||
default_actions=B2GBuild.default_actions): | ||
super(B2GLightsaber, self).__init__(require_config_file, config, all_actions, default_actions) | ||
|
||
def checkout_lightsaber(self): | ||
dirs = self.query_abs_dirs() | ||
lightsaber_dir = os.path.join(dirs['base_work_dir'] , 'lightsaber') | ||
self.rmtree(lightsaber_dir) | ||
lightsaber_repo = {'vcs': 'tc_vcs', 'repo': 'http://github.com/fxos/lightsaber', 'dest': lightsaber_dir} | ||
self.vcs_checkout_repos([lightsaber_repo]) | ||
return self.run_command(os.path.join(lightsaber_dir, 'replace-B2G.sh'), env=self.query_env(), cwd=lightsaber_dir) | ||
|
||
# main {{{1 | ||
if __name__ == '__main__': | ||
myScript = B2GLightsaber() | ||
myScript.run_and_exit() |