Put everything in different output_bases to keep the server warm
Change-Id: Ic7cc098b6a65390398e764e54613ee4453026ebf
diff --git a/tools/ci/run-tests.sh b/tools/ci/run-tests.sh
index 4688378..24cdc5b 100755
--- a/tools/ci/run-tests.sh
+++ b/tools/ci/run-tests.sh
@@ -2,12 +2,32 @@
set -e
set -x
-TARGETS='//... @com_github_google_glog//... @com_google_ceres_solver//...'
+readonly TARGETS='//... @com_github_google_glog//... @com_google_ceres_solver//...'
+readonly M4F_TARGETS='//motors/... //y2019/jevois/...'
+readonly COMMON='-c opt --stamp=no --curses=no --color=no --symlink_prefix=/'
+
+# Put everything in different output bases so we can get 4 bazel servers
+# running and keep them all warm.
# Include --config=eigen to enable Eigen assertions so that we catch potential
# bugs with Eigen.
-bazel test -c opt --stamp=no --config=eigen --curses=no --color=no ${TARGETS}
-bazel build -c opt --stamp=no --curses=no --color=no ${TARGETS} --cpu=roborio
-bazel build --stamp=no --curses=no --color=no ${TARGETS} --cpu=armhf-debian
-bazel build -c opt --stamp=no --curses=no --color=no \
- //motors/... //y2019/jevois/... --cpu=cortex-m4f
+bazel --output_base=../k8_output_base test \
+ ${COMMON} \
+ --cpu=k8 \
+ --config=eigen \
+ ${TARGETS}
+
+bazel --output_base=../roborio_output_base build \
+ ${COMMON} \
+ --cpu=roborio \
+ ${TARGETS}
+
+bazel --output_base=../armhf-debian_output_base build \
+ ${COMMON} \
+ --cpu=armhf-debian \
+ ${TARGETS}
+
+bazel --output_base=../cortex-m4f_output_base build \
+ ${COMMON} \
+ --cpu=cortex-m4f \
+ ${M4F_TARGETS}