Enable the disk cache and keep the server up
Somehow these options got lost in time. Put them back
Change-Id: Ia5a9fbdb65e3b1541326e53d048ee4a310502cd6
diff --git a/tools/ci/run-tests.sh b/tools/ci/run-tests.sh
index 005e7dd..c0f9c93 100755
--- a/tools/ci/run-tests.sh
+++ b/tools/ci/run-tests.sh
@@ -10,30 +10,32 @@
# Sanity check that we are able to build the y2020 roborio code, which confirms
# that we have the platform compatibility for the roborio set up correctly.
readonly ROBORIO_TARGETS="${TARGETS} //y2020:download_stripped"
-readonly COMMON='-c opt --stamp=no --curses=no --color=no --symlink_prefix=/'
+# Stay up forever and use inotify to find changes quickly
+readonly STARTUP='--max_idle_secs=0 --watchfs'
+readonly COMMON='-c opt --stamp=no --curses=no --color=no --symlink_prefix=/ --disk_cache=~/.cache/bazel/disk_cache/'
# Put everything in different output bases so we can get 5 bazel servers
# running and keep them all warm.
# Include --config=eigen to enable Eigen assertions so that we catch potential
# bugs with Eigen.
-tools/bazel --output_base=../k8_output_base test \
+tools/bazel ${STARTUP} --output_base=../k8_output_base test \
${COMMON} \
--config=k8 \
--config=eigen \
${TARGETS}
-tools/bazel --output_base=../roborio_output_base build \
+tools/bazel ${STARTUP} --output_base=../roborio_output_base build \
${COMMON} \
--config=roborio \
${ROBORIO_TARGETS}
-tools/bazel --output_base=../armhf-debian_output_base build \
+tools/bazel ${STARTUP} --output_base=../armhf-debian_output_base build \
${COMMON} \
--config=armhf-debian \
${TARGETS}
-tools/bazel --output_base=../cortex-m4f_output_base build \
+tools/bazel ${STARTUP} --output_base=../cortex-m4f_output_base build \
${COMMON} \
--config=cortex-m4f \
${M4F_TARGETS}