File tree Expand file tree Collapse file tree 5 files changed +27
-4
lines changed Expand file tree Collapse file tree 5 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,4 @@ before_install:
2323 - cat ~/.bazelrc >> .bazelrc
2424
2525script :
26- - bazel build test/...
27- - bazel run test:ScalaBinary
28- - bazel test test/...
26+ - test_run.sh
Original file line number Diff line number Diff line change 1+ see ya
2+ later
3+ A hui hou
Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ package scala.test
1717object ScalaLibBinary {
1818 def main (args: Array [String ]) {
1919 ScalaLibResources .getGreetings foreach println
20+ ScalaLibResources .getFarewells foreach println
2021 }
2122}
Original file line number Diff line number Diff line change 1515package scala .test
1616
1717object ScalaLibResources {
18- def getGreetings () = scala.io.Source .fromInputStream(getClass.getResourceAsStream(" hellos" )).getLines.toList
18+ def getGreetings () =
19+ scala.io.Source
20+ .fromInputStream(getClass.getResourceAsStream(" hellos" ))
21+ .getLines
22+ .toList
23+
24+ def getFarewells () =
25+ scala.io.Source
26+ .fromInputStream(getClass.getResourceAsStream(" byes" ))
27+ .getLines
28+ .toList
1929}
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ bazel build test/... \
6+ && bazel run test:ScalaBinary \
7+ && bazel run test:ScalaLibBinary \
8+ && bazel test test/...
9+
10+ # TODO: this is also broken
11+ # && bazel run test:JavaBinary \
You can’t perform that action at this time.
0 commit comments