blob: ef4cff82149ef7d7f684870a32599cf56205945d [file] [log] [blame]
Adrian Brandemuehl2ed74352017-08-23 20:29:57 -07001#!/bin/sh
2set -e
Brian Silverman1e5cc022018-02-03 22:59:48 -05003set -x
Adrian Brandemuehl2ed74352017-08-23 20:29:57 -07004
Austin Schuh47d8bef2020-08-26 21:54:38 -07005# No need to pass this through. It hurts caching.
6unset SSH_AUTH_SOCK
7
Austin Schuh96c7fe42019-02-18 11:37:49 -08008readonly TARGETS='//... @com_github_google_glog//... @com_google_ceres_solver//...'
Austin Schuhde821712019-08-03 18:16:49 -07009readonly M4F_TARGETS='//...'
Austin Schuh96c7fe42019-02-18 11:37:49 -080010readonly COMMON='-c opt --stamp=no --curses=no --color=no --symlink_prefix=/'
11
James Kuszmaul27da8142019-07-21 16:13:55 -070012# Put everything in different output bases so we can get 5 bazel servers
Austin Schuh96c7fe42019-02-18 11:37:49 -080013# running and keep them all warm.
Austin Schuh10358f22019-01-21 20:25:11 -080014
James Kuszmaul2af1ba82019-02-09 22:16:53 -080015# Include --config=eigen to enable Eigen assertions so that we catch potential
16# bugs with Eigen.
Austin Schuh40861522020-11-28 14:53:53 -080017tools/bazel --output_base=../k8_output_base test \
Austin Schuh96c7fe42019-02-18 11:37:49 -080018 ${COMMON} \
Philipp Schraderdada1072020-11-24 11:34:46 -080019 --config=k8 \
Austin Schuh96c7fe42019-02-18 11:37:49 -080020 --config=eigen \
21 ${TARGETS}
22
Austin Schuh40861522020-11-28 14:53:53 -080023tools/bazel --output_base=../roborio_output_base build \
Austin Schuh96c7fe42019-02-18 11:37:49 -080024 ${COMMON} \
Philipp Schraderdada1072020-11-24 11:34:46 -080025 --config=roborio \
Austin Schuh96c7fe42019-02-18 11:37:49 -080026 ${TARGETS}
27
Austin Schuh40861522020-11-28 14:53:53 -080028tools/bazel --output_base=../armhf-debian_output_base build \
Austin Schuh96c7fe42019-02-18 11:37:49 -080029 ${COMMON} \
Philipp Schraderdada1072020-11-24 11:34:46 -080030 --config=armhf-debian \
Austin Schuh96c7fe42019-02-18 11:37:49 -080031 ${TARGETS}
32
Austin Schuh40861522020-11-28 14:53:53 -080033tools/bazel --output_base=../cortex-m4f_output_base build \
Austin Schuh96c7fe42019-02-18 11:37:49 -080034 ${COMMON} \
Philipp Schraderdada1072020-11-24 11:34:46 -080035 --config=cortex-m4f \
Austin Schuh96c7fe42019-02-18 11:37:49 -080036 ${M4F_TARGETS}