Skip to content

Commit

Permalink
chore(NA): sync with last settings to setup bazelisk tools on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Feb 4, 2021
1 parent c5cd6ca commit 2c467cd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/dev/ci_setup/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,21 @@ if [[ -d "$ES_DIR" && -f "$ES_JAVA_PROP_PATH" ]]; then
export JAVA_HOME=$HOME/.java/$ES_BUILD_JAVA
fi

###
### copy .bazelrc-ci into $HOME/.bazelrc
###
cp -f "$KIBANA_DIR/src/dev/ci_setup/.bazelrc-ci" "$HOME/.bazelrc";

###
### append auth token to buildbuddy into "$HOME/.bazelrc";
###
echo "# Appended by $KIBANA_DIR/src/dev/ci_setup/setup.sh" >> "$HOME/.bazelrc"
echo "build --remote_header=x-buildbuddy-api-key=$KIBANA_BUILDBUDDY_CI_API_KEY" >> "$HOME/.bazelrc"

###
### make sure bazelisk is installed on CI
###
bazeliskVersion=$(head -n 1 "$KIBANA_DIR/.bazeliskversion")
yarn global add "@bazel/bazelisk@${bazeliskVersion}"

export CI_ENV_SETUP=true

0 comments on commit 2c467cd

Please sign in to comment.