blob: 1a948f1373fc706d1dc86c74e4eb359ea7318363 [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 Schuh96c7fe42019-02-18 11:37:49 -080017bazel --output_base=../k8_output_base test \
18 ${COMMON} \
19 --cpu=k8 \
20 --config=eigen \
21 ${TARGETS}
22
23bazel --output_base=../roborio_output_base build \
24 ${COMMON} \
25 --cpu=roborio \
26 ${TARGETS}
27
28bazel --output_base=../armhf-debian_output_base build \
29 ${COMMON} \
30 --cpu=armhf-debian \
31 ${TARGETS}
32
33bazel --output_base=../cortex-m4f_output_base build \
34 ${COMMON} \
35 --cpu=cortex-m4f \
36 ${M4F_TARGETS}
James Kuszmaul27da8142019-07-21 16:13:55 -070037
38bazel --output_base=../web_output_base build \
39 ${COMMON} \
40 --cpu=web \
41 ${TARGETS}