-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TEST_SUITE=bazel to run Bazel on examples
In an attempt to support all build systems in the examples, run bazel test on all examples. That's also the first step towards Bazel support #204
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 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
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 @@ | ||
|
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,21 @@ | ||
#!/bin/bash | ||
# Run bazel on examples | ||
|
||
CWD="$PWD" | ||
BASEDIR="$(cd "$(dirname "$0")" && pwd -P)"/.. | ||
# Provides the logi function | ||
source "$BASEDIR"/scripts/logger.sh | ||
# fail on error | ||
set -e | ||
|
||
logi "Install Bazel" | ||
logi "=============" | ||
curl -L https://github.com/bazelbuild/bazel/releases/download/0.16.1/bazel_0.16.1-linux-x86_64.deb -o tools/bazel-0.16.1.deb | ||
sudo install tools/bazel-0.16.1.deb | ||
|
||
logi "Run Bazel tests on examples" | ||
logi "===========================" | ||
cd jflex/examples | ||
bazel test /.. | ||
|
||
cd "$CWD" |
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