From e70a3376668a3a46e068a97e7b691a064fa23944 Mon Sep 17 00:00:00 2001 From: David Chen Date: Thu, 28 Jan 2016 09:22:12 +0000 Subject: Minor formatting fixes in code listings in Bazel CI blog post. Removes extraneous '\' characters before shell script comments. -- MOS_MIGRATED_REVID=113239711 --- site/blog/_posts/2016-01-27-continuous-integration.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'site/blog') diff --git a/site/blog/_posts/2016-01-27-continuous-integration.md b/site/blog/_posts/2016-01-27-continuous-integration.md index e6ed815e88..7158bfcace 100644 --- a/site/blog/_posts/2016-01-27-continuous-integration.md +++ b/site/blog/_posts/2016-01-27-continuous-integration.md @@ -30,22 +30,22 @@ script, we also run some projects to validate Bazel binaries against: the Bazel is reinstalled each time we run the tutorial or TensorFlow, but the Bazel cache is maintained across installs. The setup for those jobs is the following: -``` +```bash set -e -\# Fetch the Bazel installer +# Fetch the Bazel installer URL=https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-${INSTALLER_PLATFORM}.sh export BAZEL_INSTALLER=${PWD}/bazel-installer/install.sh curl -L -o ${BAZEL_INSTALLER} ${URL} BASE="${PWD}/bazel-install" -\# Install bazel inside ${BASE} +# Install bazel inside ${BASE} bash "${BAZEL_INSTALLER}" \ --base="${BASE}" \ --bazelrc="${BASE}/bin/bazel.bazelrc" \ --bin="${BASE}/binary" -\# Run the build +# Run the build BAZEL="${BASE}/binary/bazel --bazelrc=${BASE}/bin/bazel.bazelrc" ${BAZEL} test //... ``` @@ -73,7 +73,7 @@ has some feature that are incompatibles with Docker: So the last step of the previous script would look like: ```bash -\# Run the build +# Run the build BAZEL="${BASE}/binary/bazel --bazelrc=${BASE}/bin/bazel.bazelrc --batch" ${BAZEL} test --genrule_strategy=standalone --spawn_strategy=standalone \ //... -- cgit v1.2.3