Bug 1154947 part 3: Add aries nightly user, userdebug and eng builds.

This commit is contained in:
Wander Lairson Costa 2015-04-30 16:26:38 -03:00
parent 034b74b15f
commit 7b59950300
8 changed files with 130 additions and 11 deletions

View File

@ -15,6 +15,15 @@ fi
aws s3 cp s3://b2g-nightly-credentials/balrog_credentials .
mar_file=b2g-${TARGET%%-*}-gecko-update.mar
# We need different platform names for each variant (user, userdebug and
# eng). We do not append variant suffix for "user" to keep compability with
# verions already installed in the phones.
if [ $VARIANT == "user" ]; then
PLATFORM=$TARGET
else
PLATFORM=$TARGET-$VARIANT
fi
./mozharness/scripts/b2g_lightsaber.py \
--config b2g/taskcluster-lightsaber-nightly.py \
--config balrog/staging.py \
@ -29,7 +38,7 @@ mar_file=b2g-${TARGET%%-*}-gecko-update.mar
--checkout-revision=$GECKO_HEAD_REV \
--base-repo=$GECKO_BASE_REPOSITORY \
--repo=$GECKO_HEAD_REPOSITORY \
--platform $TARGET \
--platform $PLATFORM \
--complete-mar-url https://queue.taskcluster.net/v1/task/$TASK_ID/runs/$RUN_ID/artifacts/public/build/$mar_file \
# Don't cache backups

View File

@ -0,0 +1,40 @@
#! /bin/bash -vex
. pre-build.sh
# We need different platform names for each variant (user, userdebug and
# eng). We do not append variant suffix for "user" to keep compability with
# verions already installed in the phones.
if [ $VARIANT == "user" ]; then
PLATFORM=$TARGET
else
PLATFORM=$TARGET-$VARIANT
fi
./mozharness/scripts/b2g_lightsaber.py \
--config b2g/taskcluster-lightsaber.py \
"$debug_flag" \
--disable-mock \
--variant=$VARIANT \
--work-dir=$WORKSPACE/B2G \
--gaia-languages-file locales/languages_all.json \
--log-level=debug \
--target=$TARGET \
--b2g-config-dir=$TARGET \
--checkout-revision=$GECKO_HEAD_REV \
--base-repo=$GECKO_BASE_REPOSITORY \
--repo=$GECKO_HEAD_REPOSITORY
# Don't cache backups
rm -rf $WORKSPACE/B2G/backup-*
# Move files into artifact locations!
mkdir -p $HOME/artifacts
mv $WORKSPACE/B2G/upload/sources.xml $HOME/artifacts/sources.xml
mv $WORKSPACE/B2G/upload/b2g-*.crashreporter-symbols.zip $HOME/artifacts/b2g-crashreporter-symbols.zip
mv $WORKSPACE/B2G/upload/b2g-*.android-arm.tar.gz $HOME/artifacts/b2g-android-arm.tar.gz
mv $WORKSPACE/B2G/upload/${TARGET}.zip $HOME/artifacts/${TARGET}.zip
mv $WORKSPACE/B2G/upload/gaia.zip $HOME/artifacts/gaia.zip
ccache -s

View File

@ -23,6 +23,7 @@ flags:
- dolphin-512
- dolphin-512-eng
- aries-nightly
- aries-eng
tests:
- cppunit

View File

@ -23,7 +23,15 @@ builds:
- b2g
types:
opt:
task: tasks/builds/b2g_aries_lightsaber_nightly.yml
task: tasks/builds/b2g_aries_lightsaber_nightly_opt.yml
debug:
task: tasks/builds/b2g_aries_lightsaber_nightly_debug.yml
aries-eng:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_aries_lightsaber_eng.yml
tests:
gaia-build:

View File

@ -0,0 +1,35 @@
$inherits:
from: 'tasks/builds/b2g_phone_base.yml'
variables:
build_name: 'aries-eng'
build_type: 'opt'
task:
workerType: flame-kk
scopes:
- 'docker-worker:cache:build-aries-eng'
metadata:
name: '[TC] B2G Aries Eng'
payload:
cache:
build-aries-eng: /home/worker/workspace
env:
TARGET: 'aries'
DEBUG: 0
VARIANT: eng
GAIA_OPTIMIZE: '1'
B2G_SYSTEM_APPS: '1'
command:
- >
checkout-gecko workspace &&
cd ./workspace/gecko/testing/taskcluster/scripts/phone-builder &&
buildbot_step 'Build' ./build-lightsaber.sh $HOME/workspace
extra:
treeherder:
symbol: Be
groupSymbol: Aries
groupName: Aries Device Image
machine:
platform: b2g-device-image
locations:
img: 'private/build/aries.zip'

View File

@ -1,18 +1,9 @@
$inherits:
from: 'tasks/builds/b2g_phone_base.yml'
variables:
build_name: 'aries'
build_type: 'nightly'
task:
workerType: flame-kk
scopes:
- 'docker-worker:cache:build-aries-lightsaber-nightly'
metadata:
name: '[TC] B2G Aries Nightly'
payload:
cache:
build-aries-lightsaber-nightly: /home/worker/workspace
env:
TARGET: 'aries'
DEBUG: 0

View File

@ -0,0 +1,18 @@
$inherits:
from: 'tasks/builds/b2g_aries_lightsaber_nightly_base.yml'
variables:
build_name: 'aries'
build_type: 'nightly-debug'
task:
metadata:
name: '[TC] B2G Aries Nightly (userdebug)'
scopes:
- 'docker-worker:cache:build-aries-lightsaber-nightly-debug'
payload:
cache:
build-aries-lightsaber-nightly-debug: /home/worker/workspace
env:
VARIANT: userdebug
B2G_DEBUG: 1

View File

@ -0,0 +1,17 @@
$inherits:
from: 'tasks/builds/b2g_aries_lightsaber_nightly_base.yml'
variables:
build_name: 'aries'
build_type: 'nightly-user'
task:
metadata:
name: '[TC] B2G Aries Nightly (user)'
scopes:
- 'docker-worker:cache:build-aries-lightsaber-nightly-user'
payload:
cache:
build-aries-lightsaber-nightly-user: /home/worker/workspace
env:
VARIANT: user