build: do not run bazel through yarn and nodejs

We don't want to run Bazel through Yarn or NodeJS as that could
mean that Bazel runs with limited memory.
This commit is contained in:
Paul Gschwendtner
2019-07-11 11:45:17 +02:00
committed by Jeremy Elbourn
parent a2e04317b1
commit 39818135d3
3 changed files with 34 additions and 10 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
set -e
bazelBin=$(node -p "require('@bazel/bazel').getNativeBinary()")
# Provide the bazel binary globally. We don't want to access the binary
# through Node as it could result in limited memory.
sudo chmod a+x ${bazelBin}
sudo ln -fs ${bazelBin} /usr/local/bin/bazel
+1 -1
View File
@@ -24,7 +24,7 @@ docsDistPath="${projectPath}/dist/docs"
docsContentPath="${projectPath}/tmp/material2-docs-content"
# Path to the release output of the Bazel "@angular/material-examples" NPM package.
examplesPackagePath="$(yarn -s bazel info bazel-bin)/src/material-examples/npm_package"
examplesPackagePath="$(bazel info bazel-bin)/src/material-examples/npm_package"
# Git clone URL for the material2-docs-content repository.
docsContentRepoUrl="https://github.com/angular/material2-docs-content"