-
Notifications
You must be signed in to change notification settings - Fork 284
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
WIP: issue-76 #156
Closed
Closed
WIP: issue-76 #156
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b05abd6
issue-76 WIP (failing on java run):
or-shachar 82672fc
modified travis build config
or-shachar faf29ce
removed .bazelrc file
or-shachar 6f6be1e
add test configuration to print log on errors
or-shachar a7e5f51
removed redundant ls
or-shachar d771137
added .bazelrc to each test env so inner bazel run would inherit trav…
or-shachar 63df729
upgraded bazel version and added back default .bashrc
or-shachar 0d3d830
Added missing comma
or-shachar 2a2b97b
removed run of xmllint_test as it's not stateless
or-shachar a83eb66
Fixed test_repl to not use git mechanism
or-shachar 39d3594
removed stateful test test_repl
or-shachar 2fb417d
added local_jdk to test that run java
or-shachar 7367c73
moved integration tests inside test
or-shachar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1 +1 @@ | ||
2744447c9999ceea3dc0b90013dcdfbc3683ebb416eb45287c98049bb7a1c6a8 bazel-0.3.2-installer-linux-x86_64.sh | ||
90a8500cad30f2972113ef1ec45cb1e51210d240039742f8954d3271321a6f51 bazel-0.4.4-installer-linux-x86_64.sh |
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,3 @@ | ||
build --strategy=Scalac=worker | ||
test --strategy=Scalac=worker | ||
build --experimental_repository_cache=/tmp/.bazelcache |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ bazel-* | |
*.idea | ||
hash1 | ||
hash2 | ||
*.iml |
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,7 @@ | ||
filegroup( | ||
name = "sources", | ||
data = ["WORKSPACE",".bazelrc"], | ||
visibility = ["//visibility:public"] | ||
) | ||
|
||
|
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,5 @@ | ||
filegroup( | ||
name = "sources", | ||
data = glob(["**"]), | ||
visibility = ["//visibility:public"] | ||
) |
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
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
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
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
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
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
exports_files(["some.txt", "more.txt", "foo.txt"]) | ||
|
||
filegroup( | ||
name = "sources", | ||
data = glob(["**"]), | ||
visibility = ["//visibility:public"] | ||
) |
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,129 @@ | ||
repo = ["//:sources", | ||
"//scala:sources", | ||
"//scala/support:sources", | ||
"//src/java/com/google/devtools/build/lib:sources", | ||
"//src/java/io/bazel/rulesscala/io_utils:sources", | ||
"//src/java/io/bazel/rulesscala/jar:sources", | ||
"//src/java/io/bazel/rulesscala/scalac:sources", | ||
"//src/java/io/bazel/rulesscala/worker:sources", | ||
"//src/scala:sources", | ||
"//src/scala/io/bazel/rules_scala/scrooge_support:sources", | ||
"//src/scala/io/bazel/rules_scala/tut_support:sources", | ||
"//src/scala/scripts:sources", | ||
"//test:sources", | ||
"//test/data:sources", | ||
"//test/src/main/resources/scala/test:sources", | ||
"//test/src/main/scala/scala/test/srcjars:sources", | ||
"//test/src/main/scala/scala/test/twitter_scrooge:sources", | ||
"//test/src/main/scala/scala/test/twitter_scrooge/thrift:sources", | ||
"//test/src/main/scala/scala/test/twitter_scrooge/thrift/thrift2:sources", | ||
"//test/src/main/scala/scala/test/twitter_scrooge/thrift/thrift2/thrift3:sources", | ||
"//test/src/main/scala/scala/test/twitter_scrooge/thrift/thrift2/thrift4:sources", | ||
"//test/tut:sources", | ||
"//test_expect_failure/disappearing_class:sources", | ||
"//test_expect_failure/scala_library_suite:sources", | ||
"//test_expect_failure/transitive/java_to_scala:sources", | ||
"//test_expect_failure/transitive/scala_to_java:sources", | ||
"//test_expect_failure/transitive/scala_to_scala:sources", | ||
"//thrift:sources", | ||
"//tut_rule:sources", | ||
"//twitter_scrooge:sources"] | ||
|
||
sh_test( | ||
name = "build_targets_under_tests_package", | ||
size = "large", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["bazel","build","test/..."]) | ||
|
||
sh_test( | ||
name = "run_tests_under_tests_package", | ||
size = "large", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["bazel","test","test/..."] ) | ||
|
||
sh_test( | ||
name = "run_justscrooges", | ||
size = "medium", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["bazel","run","test/src/main/scala/scala/test/twitter_scrooge:justscrooges"] ) | ||
|
||
sh_test( | ||
name = "run_JavaBinary", | ||
size = "large", | ||
data = repo + ["@local_jdk//:jdk"], | ||
srcs = ["test_run.sh"], | ||
args = ["bazel","run","test:JavaBinary"] ) | ||
|
||
sh_test( | ||
name = "run_JavaBinary2", | ||
size = "large", | ||
data = repo + ["@local_jdk//:jdk"], | ||
srcs = ["test_run.sh"], | ||
args = ["bazel","run","test:JavaBinary2"] ) | ||
|
||
sh_test( | ||
name = "MixJavaScalaLibBinary", | ||
size = "medium", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["bazel","run","test:MixJavaScalaLibBinary"] ) | ||
|
||
sh_test( | ||
name = "run_ScalaBinary", | ||
size = "medium", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["bazel","run","test:ScalaBinary"] ) | ||
|
||
|
||
sh_test( | ||
name = "test_disappearing_class", | ||
size = "medium", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["test_disappearing_class"] ) | ||
|
||
|
||
sh_test( | ||
name = "run_ScalaLibBinary", | ||
size = "medium", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["bazel","run","test:ScalaLibBinary"] ) | ||
|
||
sh_test( | ||
name = "JavaOnlySources", | ||
size = "medium", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["bazel","run","test:JavaOnlySources"] ) | ||
|
||
|
||
sh_test( | ||
name = "test_build_is_identical", | ||
size = "large", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["test_build_is_identical"] ) | ||
|
||
|
||
sh_test( | ||
name = "test_transitive_deps", | ||
size = "medium", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["test_transitive_deps"] ) | ||
|
||
|
||
sh_test( | ||
name = "test_scala_library_suite", | ||
size = "medium", | ||
data = repo, | ||
srcs = ["test_run.sh"], | ||
args = ["test_scala_library_suite"] ) | ||
|
||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not
bazel test test/...
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In previous solution it would only run the test_sh.sh which is the integration tests.
Inside the integration tests in runs the
bazel test test/...