-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1141 from tweag/pipeline-bazel-version
Pipeline defined Bazel version
- Loading branch information
Showing
6 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6564a9ccb2ab4e39696f20254f3c1a900992e849d1307d8abed708bf48acc4ee bazel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.28.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Calls `fetch-bazel-bindist` to download Bazel, adds it to `$PATH`, configures | ||
# `.bazelrc.local`, and runs the tests. | ||
|
||
set -euo pipefail | ||
|
||
BAZEL_DIR="$(.buildkite/fetch-bazel-bindist)" | ||
trap "rm -rf '$BAZEL_DIR'" EXIT | ||
export PATH="$BAZEL_DIR:$PATH" | ||
echo "common:ci --build_tag_filters -requires_lz4,-requires_proto,-requires_zlib,-requires_doctest,-requires_c2hs,-requires_threaded_rts,-dont_test_with_bindist" > .bazelrc.local | ||
# XXX: See .bazelrc [backward compatible options] for the the rational behind this flag | ||
echo "build --incompatible_use_python_toolchains=false" >> .bazelrc.local | ||
# XXX: Remove once all rules using `use_default_shell_env = True` have been | ||
# converted to using `rules_sh`'s POSIX toolchain. | ||
echo "build:ci --experimental_strict_action_env" >> .bazelrc.local | ||
./tests/run-start-script.sh --use-bindists | ||
bazel build --config ci //tests/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
# nixpkgs Bazel version ends on '- (@non-git)'. | ||
VERSION_EXPECTED="bazel $(cat "$DIR/bazel-version")- (@non-git)" | ||
VERSION_ACTUAL=$(bazel version --gnu_format) | ||
[[ "$VERSION_ACTUAL" = "$VERSION_EXPECTED" ]] || { | ||
echo "Expected Bazel version $VERSION_EXPECTED but found $VERSION_ACTUAL." >&2 | ||
exit 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
VERSION=$(cat "$DIR/bazel-version") | ||
INSTALL="$(mktemp -d)" | ||
curl -L "https://github.com/bazelbuild/bazel/releases/download/$VERSION/bazel-$VERSION-linux-x86_64" -o "$INSTALL/bazel" >&2 | ||
(cd "$INSTALL" && sha256sum --quiet -c "$DIR/bazel-sha256") >&2 | ||
chmod +x "$INSTALL/bazel" | ||
echo -n "$INSTALL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters