<commit_before>#!/usr/bin/env bash
set -eu

# mach wants this
export SHELL=$(which bash)

apt-get install -y apt-transport-https curl
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
echo 'deb https://deb.nodesource.com/node_6.x yakkety main' > /etc/apt/sources.list.d/nodesource.list
echo 'deb-src https://deb.nodesource.com/node_6.x yakkety main' >> /etc/apt/sources.list.d/nodesource.list
apt-get update

apt-get install -y curl python2.7 xvfb nodejs

# Creates gecko-dev-master
echo 'Downloading gecko-dev...'
curl -sL https://github.com/mozilla/gecko-dev/archive/master.tar.gz | tar xz

pushd normandy/recipe-client-addon
npm install
./bin/update-mozilla-central.sh ../gecko-dev/
popd

pushd gecko-dev-master
python2.7 ./python/mozboot/bin/bootstrap.py --no-interactive --application-choice=browser
source /root/.cargo/env
./mach lint browser/extensions/shield-recipe-client/
./mach build
xvfb-run ./mach test browser/extensions/shield-recipe-client/
popd<commit_msg>Fix TaskCluster builds.<commit_after>#!/usr/bin/env bash
set -eu

# mach wants this
export SHELL=$(which bash)

apt-get install -y apt-transport-https curl
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
echo 'deb https://deb.nodesource.com/node_6.x yakkety main' > /etc/apt/sources.list.d/nodesource.list
echo 'deb-src https://deb.nodesource.com/node_6.x yakkety main' >> /etc/apt/sources.list.d/nodesource.list
apt-get update

# libgl1-mesa-dev works around a webrender build issue
apt-get install -y curl python2.7 xvfb nodejs libgl1-mesa-dev

# Creates gecko-dev-master
echo 'Downloading gecko-dev...'
curl -sL https://github.com/mozilla/gecko-dev/archive/master.tar.gz | tar xz

pushd normandy/recipe-client-addon
npm install
./bin/update-mozilla-central.sh ../gecko-dev/
popd

pushd gecko-dev-master
python2.7 ./python/mozboot/bin/bootstrap.py --no-interactive --application-choice=browser
source /root/.cargo/env
./mach lint browser/extensions/shield-recipe-client/
./mach build
xvfb-run ./mach test browser/extensions/shield-recipe-client/
popd
{'fraction_non_alphanumeric': 0.14127823161941375, 'fraction_numerical': 0.006727534839019702, 'mean_word_length': 3.8758782201405153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3085039', 'n_tokens_mistral': 798, 'n_tokens_neox': 746, 'n_words': 161}