blob: 56495102993713bca42c20d9850e30d914fe8808 [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 Schuh96c7fe42019-02-18 11:37:49 -08005readonly TARGETS='//... @com_github_google_glog//... @com_google_ceres_solver//...'
Austin Schuhde821712019-08-03 18:16:49 -07006readonly M4F_TARGETS='//...'
Austin Schuh96c7fe42019-02-18 11:37:49 -08007readonly COMMON='-c opt --stamp=no --curses=no --color=no --symlink_prefix=/'
8
James Kuszmaul27da8142019-07-21 16:13:55 -07009# Put everything in different output bases so we can get 5 bazel servers
Austin Schuh96c7fe42019-02-18 11:37:49 -080010# running and keep them all warm.
Austin Schuh10358f22019-01-21 20:25:11 -080011
James Kuszmaul2af1ba82019-02-09 22:16:53 -080012# Include --config=eigen to enable Eigen assertions so that we catch potential
13# bugs with Eigen.
Austin Schuh96c7fe42019-02-18 11:37:49 -080014bazel --output_base=../k8_output_base test \
15 ${COMMON} \
16 --cpu=k8 \
17 --config=eigen \
18 ${TARGETS}
19
20bazel --output_base=../roborio_output_base build \
21 ${COMMON} \
22 --cpu=roborio \
23 ${TARGETS}
24
25bazel --output_base=../armhf-debian_output_base build \
26 ${COMMON} \
27 --cpu=armhf-debian \
28 ${TARGETS}
29
30bazel --output_base=../cortex-m4f_output_base build \
31 ${COMMON} \
32 --cpu=cortex-m4f \
33 ${M4F_TARGETS}
James Kuszmaul27da8142019-07-21 16:13:55 -070034
35bazel --output_base=../web_output_base build \
36 ${COMMON} \
37 --cpu=web \
38 ${TARGETS}