blob: fd92ea3b44af111d090a49b135c262de03337f35 [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} \
19 --cpu=k8 \
20 --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} \
25 --cpu=roborio \
26 ${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} \
30 --cpu=armhf-debian \
31 ${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} \
35 --cpu=cortex-m4f \
36 ${M4F_TARGETS}