gecko-dev/taskcluster/docker/decision/system-setup.sh
Rob Lemley fd2b496ad9 Bug 1491371 - Update decision task image to support comm-task-env. r=dustin
comm-task-env runs before run-task and updates the environment with GECKO_*
variables that are defined in a file at the root of a subproject's repository,
such as "comm-central".

Updates:
- add comm-task-env
- add python 3.5 (run-task dependency)
- add pyyaml

Differential Revision: https://phabricator.services.mozilla.com/D16934

--HG--
extra : moz-landing-system : lando
2019-03-18 22:19:08 +00:00

34 lines
496 B
Bash

#!/usr/bin/env bash
set -v -e
test "$(whoami)" == 'root'
apt-get update
apt-get install -y --force-yes --no-install-recommends \
ca-certificates \
python \
sudo \
python3 \
python3-yaml
BUILD=/root/build
mkdir "$BUILD"
tooltool_fetch() {
cat >manifest.tt
python2.7 /tmp/tooltool.py fetch
rm manifest.tt
}
cd $BUILD
# shellcheck disable=SC1091
. /tmp/install-mercurial.sh
cd /
rm -rf $BUILD
apt-get clean
apt-get autoclean
rm -rf /var/lib/apt/lists/
rm "$0"