Skip to content

Commit

Permalink
Enable RBE for -assemble targets (typedb#5075)
Browse files Browse the repository at this point in the history
What is the goal of this PR?
Speed up building assemble-* targets

What are the changes implemented in this PR?
Use run-bazel-rbe instead of directly executing bazel for assemble-* targets
  • Loading branch information
vmax authored and Marco Scoppetta committed Apr 4, 2019
1 parent cf85a6c commit 45a08ba
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ jobs:
steps:
- install-bazel-mac
- checkout
- run: bazel build //:assemble-mac-zip
- run-bazel-rbe:
command: bazel build //:assemble-mac-zip
- run: unzip bazel-genfiles/grakn-core-all-mac.zip -d bazel-genfiles/
- run: nohup bazel-genfiles/grakn-core-all-mac/grakn server start
- run: bazel test //test/common:grakn-application-test --test_output=streamed --spawn_strategy=standalone --cache_test_results=no
Expand All @@ -150,7 +151,8 @@ jobs:
steps:
- install-bazel-linux-rbe
- checkout
- run: bazel build //:assemble-linux-targz
- run-bazel-rbe:
command: bazel build //:assemble-linux-targz
- run: tar -xf bazel-genfiles/grakn-core-all-linux.tar.gz -C bazel-genfiles
- run: nohup bazel-genfiles/grakn-core-all-linux/grakn server start
- run: bazel test //test/common:grakn-application-test --test_output=streamed --spawn_strategy=standalone --cache_test_results=no
Expand All @@ -162,9 +164,12 @@ jobs:
steps:
- install-bazel-linux-rbe
- checkout
- run: bazel build //bin:assemble-linux-apt
- run: bazel build //server:assemble-linux-apt
- run: bazel build //console:assemble-linux-apt
- run-bazel-rbe:
command: bazel build //bin:assemble-linux-apt
- run-bazel-rbe:
command: bazel build //server:assemble-linux-apt
- run-bazel-rbe:
command: bazel build //console:assemble-linux-apt
- run: sudo dpkg -i bazel-bin/bin/grakn-core-bin__all.deb
- run: sudo dpkg -i bazel-bin/server/grakn-core-server__all.deb
- run: sudo dpkg -i bazel-bin/console/grakn-core-console__all.deb
Expand Down

0 comments on commit 45a08ba

Please sign in to comment.