Skip to content

Commit

Permalink
Merge pull request mozilla#20 from gregarndt/bug_1093830
Browse files Browse the repository at this point in the history
BUG 1093830 - builds need moztt package r=lightsofapollo
  • Loading branch information
gregarndt committed Nov 13, 2014
2 parents f595cfb + a36aa10 commit 6242393
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 20 deletions.
2 changes: 1 addition & 1 deletion testing/docker/builder/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.18
0.0.19
10 changes: 2 additions & 8 deletions testing/docker/builder/bin/build-b2g-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ cd $gecko_dir
hg pull -r $REVISION $REPOSITORY;
hg update $REVISION;

### Retrieve and install latest tooltool manifest
tooltool=/home/worker/tools/tooltool.py
manifest=b2g/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
### Install package dependencies
. install_packages.sh

### Clone gaia
if [ ! -d "$gaia_dir" ]; then
Expand Down
10 changes: 2 additions & 8 deletions testing/docker/builder/bin/build-mulet-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ 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
### Install package dependencies
. install_packages.sh

export MOZ_OBJDIR=$(get-objdir.py $gecko_dir)

Expand Down
26 changes: 26 additions & 0 deletions testing/docker/builder/bin/install_packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash -vex

if [ ! -d "gcc" ]; then
curl https://s3-us-west-2.amazonaws.com/test-caching/packages/gcc.tar.xz | tar Jx
fi

if [ ! -d "sccache" ]; then
curl https://s3-us-west-2.amazonaws.com/test-caching/packages/sccache.tar.bz2 | tar jx
fi

# Remove cached moztt directory if it exists when a user supplied a git url/revision
if [ ! -z $MOZTT_GIT_URL ] || [ ! -z $MOZTT_REVISION ]; then
echo "Removing cached moztt package"
rm -rf moztt
fi

if [ ! -d "moztt" ]; then
moztt_url=${MOZTT_GIT_URL:=https://github.com/mozilla-b2g/moztt}
moztt_revision=${MOZTT_REVISION:=master}
git clone $moztt_url moztt
cd moztt && git checkout $moztt_revision
echo "moztt repository: $moztt_url"
echo "moztt revision: $(git rev-parse HEAD)"
cd $gecko_dir
fi

3 changes: 0 additions & 3 deletions testing/docker/builder/system-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ tools_dir="/tmp/tools"

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/* $home/.*

Expand Down
2 changes: 2 additions & 0 deletions testing/taskcluster/tasks/builds/b2g_desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ task:
# revision/project params defined originally here https://github.com/taskcluster/taskcluster-try/blob/master/try/instantiate.js
REVISION: '{{revision}}'
REPOSITORY: '{{repository}}'
MOZTT_GIT_URL: '{{moztt_git_url}}'
MOZTT_REVISION: '{{moztt_revision}}'

image: '{{#docker_image}}builder{{/docker_image}}'
maxRunTime: 3600
Expand Down
2 changes: 2 additions & 0 deletions testing/taskcluster/tasks/builds/b2g_desktop_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ task:
# revision/project params defined originally here https://github.com/taskcluster/taskcluster-try/blob/master/try/instantiate.js
REVISION: '{{revision}}'
REPOSITORY: '{{repository}}'
MOZTT_GIT_URL: '{{moztt_git_url}}'
MOZTT_REVISION: '{{moztt_revision}}'

image: '{{#docker_image}}builder{{/docker_image}}'
maxRunTime: 3600
Expand Down
2 changes: 2 additions & 0 deletions testing/taskcluster/tasks/builds/mulet_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ task:
# revision/project params defined originally here https://github.com/taskcluster/taskcluster-try/blob/master/try/instantiate.js
REVISION: '{{revision}}'
REPOSITORY: '{{repository}}'
MOZTT_GIT_URL: '{{moztt_git_url}}'
MOZTT_REVISION: '{{moztt_revision}}'

image: '{{#docker_image}}builder{{/docker_image}}'
maxRunTime: 3600
Expand Down

0 comments on commit 6242393

Please sign in to comment.