forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mozilla#14 from gregarndt/linux64-mulet_build
Linux64 mulet build
- Loading branch information
Showing
14 changed files
with
156 additions
and
18 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.0.14 | ||
0.0.16 |
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
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,53 @@ | ||
#!/bin/bash -live | ||
|
||
################################### build-mulet-linux.sh ################################### | ||
|
||
. build-setup.sh | ||
|
||
### Check that require variables are defined | ||
test $REPOSITORY # Should be an hg repository url to pull from | ||
test $REVISION # Should be an hg revision to pull down | ||
test $MOZCONFIG # Should be a mozconfig file from mozconfig/ folder | ||
|
||
### Pull and update mozilla-central | ||
cd $gecko_dir | ||
hg pull -r $REVISION $REPOSITORY; | ||
hg update $REVISION; | ||
|
||
### Retrieve and install latest tooltool manifest | ||
tooltool=/home/worker/tools/tooltool.py | ||
manifest=browser/config/tooltool-manifests/linux64/releng.manifest | ||
tooltool_url=http://tooltool.pub.build.mozilla.org/temp-sm-stuff | ||
|
||
python $tooltool --url $tooltool_url --overwrite -m $manifest fetch -c $TOOLTOOL_CACHE | ||
chmod +x setup.sh | ||
./setup.sh | ||
|
||
export MOZ_OBJDIR=$(get-objdir.py $gecko_dir) | ||
|
||
./mach build; | ||
|
||
### Make package | ||
cd $MOZ_OBJDIR; | ||
make package package-tests; | ||
|
||
### Extract artifacts | ||
# Navigate to dist/ folder | ||
cd $MOZ_OBJDIR/dist; | ||
|
||
ls -lah $MOZ_OBJDIR/dist/ | ||
|
||
|
||
# Target names are cached so make sure we discard them first if found. | ||
rm -f target.linux-x86_64.tar.bz2 target.linux-x86_64.json target.tests.zip | ||
|
||
# Artifacts folder is outside of the cache. | ||
mkdir -p /home/worker/artifacts/ | ||
|
||
# Discard version numbers from packaged files, they just make it hard to write | ||
# the right filename in the task payload where artifacts are declared | ||
mv *.linux-x86_64.tar.bz2 /home/worker/artifacts/target.linux-x86_64.tar.bz2 | ||
mv *.linux-x86_64.json /home/worker/artifacts/target.linux-x86_64.json | ||
mv *.tests.zip /home/worker/artifacts/target.tests.zip | ||
|
||
################################### build.sh ################################### |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,18 @@ | ||
#!/bin/bash -ve | ||
|
||
############################### system-setup.sh ############################### | ||
|
||
home="/home/worker" | ||
|
||
mkdir -p $home/bin | ||
mkdir -p $home/tools | ||
mkdir -p $home/tools/tooltool-cache | ||
|
||
wget -O $home/tools/tooltool.py https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py | ||
|
||
chown -R worker:worker /home/worker/* /home/worker/.* | ||
|
||
# Remove the setup.sh setup, we don't really need this script anymore, deleting | ||
# it keeps the image as clean as possible. | ||
rm $0; echo "Deleted $0"; | ||
|
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
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
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
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,52 @@ | ||
taskId: {{build_slugid}} | ||
task: | ||
created: '{{now}}' | ||
deadline: '{{#from_now}}24 hours{{/from_now}}' | ||
metadata: | ||
source: http://todo.com/soon | ||
owner: {{owner}} | ||
name: Mulet Linux x64 Opt | ||
description: Mulet Linux x64 Opt | ||
|
||
workerType: b2gbuild | ||
provisionerId: aws-provisioner | ||
|
||
scopes: | ||
- 'docker-worker:cache:sources-mozilla-central' | ||
- 'docker-worker:cache:build-mulet-linux-objects' | ||
- 'docker-worker:cache:tooltool-cache' | ||
|
||
payload: | ||
cache: | ||
sources-mozilla-central: '/home/worker/mozilla-central' | ||
build-mulet-linux-objects: '/home/worker/object-folder' | ||
tooltool-cache: '/home/worker/tools/tooltool-cache' | ||
|
||
env: | ||
MOZCONFIG: 'b2g/dev/config/mozconfigs/linux64/mulet' | ||
# revision/project params defined originally here https://github.com/taskcluster/taskcluster-try/blob/master/try/instantiate.js | ||
REVISION: '{{revision}}' | ||
REPOSITORY: '{{repository}}' | ||
|
||
image: '{{#docker_image}}builder{{/docker_image}}' | ||
maxRunTime: 3600 | ||
|
||
command: | ||
- bin/build-mulet-linux.sh | ||
|
||
artifacts: | ||
'public/build': | ||
type: directory | ||
path: '/home/worker/artifacts/' | ||
expires: '{{#from_now}}1 year{{/from_now}}' | ||
|
||
extra: | ||
# Rather then enforcing particular conventions we require that all build | ||
# tasks provide the "build" extra field to specify where the build and tests | ||
# files are located. | ||
locations: | ||
build: 'public/build/target.linux-x86_64.tar.bz2' | ||
tests: 'public/build/target.tests.zip' | ||
|
||
treeherder: | ||
symbol: B |