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:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View 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

View 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 $*" $@