taskcluster/docker/rust-build/fetch_rust.sh
author CuriousLearner <sanyam.khurana01@gmail.com>
Thu, 20 Oct 2016 18:25:34 +0530
changeset 326973 f374e4333d3a17f72d89063670115d71a9643a5f
parent 326508 testing/docker/rust-build/fetch_rust.sh@0f3603e365f029bc9ea5f926d32f6f0f8aa4d998
child 341997 e0c38f8b6ebcc23320ede1928c09eda7526b71da
permissions -rw-r--r--
Bug 1302763 - Move docker images out of testing/docker into taskcluster/docker; r=dustin r=CuriousLearner MozReview-Commit-ID: 7v1uCDB5qoN

#!/bin/bash -vex

set -x -e

# Inputs, with defaults

: RUST_REPOSITORY ${RUST_REPOSITORY:=https://github.com/rust-lang/rust}
: RUST_BRANCH     ${RUST_BRANCH:=stable}

: WORKSPACE       ${WORKSPACE:=/home/worker}

set -v

# Check out rust sources
git clone $RUST_REPOSITORY -b $RUST_BRANCH ${WORKSPACE}/rust

# Report version
VERSION=$(git -C ${WORKSPACE}/rust describe --tags --dirty)
COMMIT=$(git -C ${WORKSPACE}/rust rev-parse HEAD)
echo "rust ${VERSION} (commit ${COMMIT})" | tee rust-version