Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
1
gaia/build/docker/gaia-taskenv/DOCKER_TAG
Executable file
1
gaia/build/docker/gaia-taskenv/DOCKER_TAG
Executable file
|
|
@ -0,0 +1 @@
|
|||
taskcluster/gaia-taskenv
|
||||
10
gaia/build/docker/gaia-taskenv/Dockerfile
Executable file
10
gaia/build/docker/gaia-taskenv/Dockerfile
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
from taskcluster/tester:0.4.5
|
||||
maintainer Aus Lacroix <aus@mozilla.com>
|
||||
|
||||
# configure git identity
|
||||
run git config --global user.email "gaia@mozilla.com"
|
||||
run git config --global user.name "gaia-taskenv"
|
||||
|
||||
# run some more root commands which change frequently
|
||||
copy ./bin/entrypoint /home/worker/bin/entrypoint
|
||||
run chmod a+x /home/worker/bin/entrypoint
|
||||
1
gaia/build/docker/gaia-taskenv/VERSION
Executable file
1
gaia/build/docker/gaia-taskenv/VERSION
Executable file
|
|
@ -0,0 +1 @@
|
|||
2.0.5
|
||||
62
gaia/build/docker/gaia-taskenv/bin/buildbot_step
Executable file
62
gaia/build/docker/gaia-taskenv/bin/buildbot_step
Executable file
|
|
@ -0,0 +1,62 @@
|
|||
#! /bin/bash -e
|
||||
|
||||
buildbot_step_help() {
|
||||
echo "Run a command and wrap it in buildbot step format"
|
||||
echo " $0 - <buildbot step> [bash args...]"
|
||||
}
|
||||
|
||||
bb_time() {
|
||||
# Parser dies if this is longer then 6 chars long.
|
||||
nano=$(date +%N | cut -c1-6)
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S.')$nano"
|
||||
}
|
||||
|
||||
bb_echo() {
|
||||
echo "========= $1 ========="
|
||||
}
|
||||
|
||||
bb_line() {
|
||||
local type=$1 # Finished/Started
|
||||
local step=$2 # Name of step
|
||||
local code=$3 # Exit code
|
||||
local duration=$4 # Elapsed time in seconds
|
||||
local time=$(bb_time)
|
||||
|
||||
bb_echo "$type $step (results: $code, elapsed: $duration secs) (at $time)"
|
||||
}
|
||||
|
||||
# Intentionally the full name of this executable so sourcing this file also
|
||||
# works as expected...
|
||||
buildbot_step() {
|
||||
local step=$1
|
||||
local command=${@:2}
|
||||
local start_time=$(date +%s)
|
||||
local exit_code=0
|
||||
|
||||
bb_line "Started" "$step" 0 0
|
||||
if eval "$command";
|
||||
then
|
||||
exit_code=$?
|
||||
else
|
||||
exit_code=$?
|
||||
fi
|
||||
|
||||
local end_time=$(date +%s)
|
||||
local duration=$(($end_time-$start_time))
|
||||
|
||||
bb_line "Finished" "$step" $exit_code $duration
|
||||
return $exit_code
|
||||
}
|
||||
|
||||
|
||||
# When this script is not being sourced invoke command directly.
|
||||
if [ "$(basename $0)" == "buildbot_step" ];
|
||||
then
|
||||
if [ $# -lt 2 ];
|
||||
then
|
||||
buildbot_step_help
|
||||
exit 1
|
||||
fi
|
||||
buildbot_step "$@"
|
||||
exit $?
|
||||
fi
|
||||
49
gaia/build/docker/gaia-taskenv/bin/entrypoint
Executable file
49
gaia/build/docker/gaia-taskenv/bin/entrypoint
Executable file
|
|
@ -0,0 +1,49 @@
|
|||
#! /bin/bash -e
|
||||
|
||||
source ./bin/buildbot_step
|
||||
|
||||
Xvfb :0 -nolisten tcp -screen 0 1600x1200x24 2>/dev/null &
|
||||
export DISPLAY=:0
|
||||
|
||||
checkout_path="$PWD/git_checkout"
|
||||
|
||||
# Handle initial clone and caching of the initial clone...
|
||||
step_checkout() {
|
||||
# Extract the cached clone (this is kept as a tarball to always keep a clean
|
||||
# working state without worrying about tree issues).
|
||||
if [ "$GITHUB_PULL_REQUEST" == "1" ];
|
||||
then
|
||||
tc-vcs checkout $checkout_path \
|
||||
$GITHUB_BASE_GIT \
|
||||
$GITHUB_HEAD_GIT \
|
||||
$GITHUB_HEAD_BRANCH
|
||||
else
|
||||
tc-vcs checkout $checkout_path \
|
||||
$GITHUB_BASE_GIT \
|
||||
$GITHUB_HEAD_GIT
|
||||
fi
|
||||
}
|
||||
|
||||
# Set-up our npm-cache.
|
||||
step_npm_cache() {
|
||||
taskcluster-npm-cache-get --namespace gaia.npm_cache ./package.json
|
||||
}
|
||||
|
||||
buildbot_step 'git checkout' step_checkout
|
||||
|
||||
# From here on we to operate inside of the actual checkout mostly for
|
||||
# convenience.
|
||||
cd $checkout_path
|
||||
|
||||
# Current revision...
|
||||
buildbot_step 'git revision...' git --no-pager log -n 1
|
||||
|
||||
# node modules
|
||||
buildbot_step 'npm-cache-get' step_npm_cache
|
||||
|
||||
# virtualenv setup so any python packages can be abused without root access
|
||||
buildbot_step 'virtualenv' virtualenv $HOME/.venv --system-site-packages
|
||||
source $HOME/.venv/bin/activate
|
||||
|
||||
# run whatever command was intended on the branch (root of the repo)
|
||||
buildbot_step "run $*" $@
|
||||
2
gaia/build/docker/gaia-taskenv/build
Executable file
2
gaia/build/docker/gaia-taskenv/build
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#! /bin/bash -vex
|
||||
docker build -t $(cat DOCKER_TAG):$(cat VERSION) $PWD
|
||||
4
gaia/build/docker/gaia-taskenv/run
Executable file
4
gaia/build/docker/gaia-taskenv/run
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#! /bin/bash -e
|
||||
|
||||
./build
|
||||
docker run $@ -v $PWD/bin:/home/worker/bin -i -t $(cat DOCKER_TAG):$(cat VERSION) /bin/bash
|
||||
Loading…
Reference in a new issue