-
Notifications
You must be signed in to change notification settings - Fork 1
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 #5 from CBSkarmory/sw2bazel
Switch to Bazel from Maven
- Loading branch information
Showing
7 changed files
with
59 additions
and
70 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,19 @@ | ||
# This is from Bazel's former travis setup, to avoid blowing up the RAM usage. | ||
startup --host_jvm_args=-Xmx2500m | ||
startup --host_jvm_args=-Xms2500m | ||
startup --batch | ||
test --ram_utilization_factor=10 | ||
|
||
# This is so we understand failures better | ||
build --verbose_failures | ||
|
||
# This is so we don't use sandboxed execution. Sandboxed execution | ||
# runs stuff in a container, and since Travis already runs its script | ||
# in a container (unless you require sudo in your .travis.yml) this | ||
# fails to run tests. | ||
build --spawn_strategy=standalone --genrule_strategy=standalone | ||
test --test_strategy=standalone | ||
|
||
# Below this line, .travis.yml will cat the default bazelrc. | ||
# This is needed so Bazel starts with the base workspace in its | ||
# package path. |
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ target/* | |
.project | ||
*Backup.java | ||
*~ | ||
/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 |
---|---|---|
@@ -1 +1,10 @@ | ||
language: Java | ||
before_install: | ||
- echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list | ||
- curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - | ||
- sudo apt-get update | ||
install: | ||
- sudo apt-get install bazel | ||
script: | ||
- bazel build //:awgw-v0.5-alpha | ||
- bazel build //:awgw-v0.5-alpha_deploy.jar |
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 @@ | ||
java_binary( | ||
name = "awgw-v0.5-alpha", | ||
srcs = glob(["src/main/java/**/*.java"]), | ||
resources = glob([ | ||
"src/main/resources/**", | ||
"src/main/java/**/*.gif", | ||
"src/main/java/**/*.properties" | ||
]), | ||
main_class = "cbskarmory.Runner", | ||
) |
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 @@ | ||
|