diff options
author | David Chen <dzc@google.com> | 2016-01-28 09:22:12 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2016-01-28 15:30:15 +0000 |
commit | e70a3376668a3a46e068a97e7b691a064fa23944 (patch) | |
tree | 825ae73fdf7cad2ba89d9172dc1813df84596509 /site/blog | |
parent | 72f618530dadba1ac7e420eafb35627a9fb05d94 (diff) |
Minor formatting fixes in code listings in Bazel CI blog post.
Removes extraneous '\' characters before shell script comments.
--
MOS_MIGRATED_REVID=113239711
Diffstat (limited to 'site/blog')
-rw-r--r-- | site/blog/_posts/2016-01-27-continuous-integration.md | 10 |
1 files changed, 5 insertions, 5 deletions
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 \ //... |