taskcluster/scripts/misc/build-clang-tidy-linux.sh
author Gregory Szorc <gps@mozilla.com>
Wed, 09 May 2018 14:36:45 -0700
changeset 818149 2f346200eee8f6576823c84526081c34b2b13be2
parent 613756 4ed067a3c2941aada4f32eb63b68d5574a2a2c80
permissions -rwxr-xr-x
Bug 1460650 - Rename sixgill task name so it has "gcc" in it; r=nalexander Mainly so searching "toolchain" + "gcc" yields something useful in the taskgraph. MozReview-Commit-ID: HWiT3AwwYQ2

#!/bin/bash
set -x -e -v

# This script is for building clang for Linux.

WORKSPACE=$HOME/workspace
HOME_DIR=$WORKSPACE/build
UPLOAD_DIR=$HOME/artifacts

cd $HOME_DIR/src

. taskcluster/scripts/misc/tooltool-download.sh

# gets a bit too verbose here
set +x

cd build/build-clang
# |mach python| sets up a virtualenv for us!
../../mach python ./build-clang.py -c clang-tidy-linux64.json

set -x

# Put a tarball in the artifacts dir
mkdir -p $UPLOAD_DIR
cp clang-tidy.tar.* $UPLOAD_DIR