Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests and build JAR from Travis CI #184

Merged
merged 3 commits into from
Jul 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ edumips64.iml
#################################################################################
## Bazel

bazel-*
/bazel-*
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ install:
rm -f install.sh
script:
- |
ant test
ant gwtc
bazel test //src/test/java/org/edumips64/...:all

ant test
ant gwtc
bazel test //src/test/java/org/edumips64/...:all
bazel build //src/main/java/org/edumips64:edumips64_deploy.jar --workspace_status_command=utils/bazel-stamp.sh --stamp
jdk:
- oraclejdk8
after_success:
Expand Down
10 changes: 10 additions & 0 deletions utils/bazel-stamp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
#
# Tool to build key/value pairs that will be injected as variables in Bazel
# build files if the tool is invoked through --workspace_status_command.

# Volatile variable with the current build time.
echo "CURRENT_TIME $(date)"

# Stable variable with the most recent Git commit.
echo "STABLE_GIT_COMMIT $(git rev-parse HEAD)"