2022-03-23 20:40:28 +01:00
|
|
|
####################################################################################################
|
|
|
|
|
# Set bazel configuration for CircleCI runs.
|
|
|
|
|
####################################################################################################
|
2022-09-24 09:09:53 +00:00
|
|
|
cp "${PROJECT_ROOT}/.circleci/bazel.windows.rc" ".bazelrc.user";
|
2022-03-24 20:23:53 +01:00
|
|
|
|
2022-12-02 14:48:14 +00:00
|
|
|
# Override the `PATH` environment variable so that the windows-nvm NodeJS version
|
|
|
|
|
# always has precedence over potential existing NodeJS versions from the image.
|
|
|
|
|
setPublicVar PATH "/c/Program Files/nodejs/:$PATH"
|
2022-03-24 20:23:53 +01:00
|
|
|
|
|
|
|
|
# Expose the Bazelisk version. We need to run Bazelisk globally since Windows has problems launching
|
|
|
|
|
# Bazel from a node modules directoy that might be modified by the Bazel Yarn install then.
|
|
|
|
|
setPublicVar BAZELISK_VERSION \
|
2022-09-24 09:09:53 +00:00
|
|
|
"$(cd ${PROJECT_ROOT}; node -p 'require("./package.json").devDependencies["@bazel/bazelisk"]')"
|