blob: 005e7dd1e19aa2dc4669cfe01188de02b9efbae7 [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='//...'
James Kuszmaulbaa897a2020-12-12 18:17:34 -080010# Sanity check that we are able to build the y2020 roborio code, which confirms
11# that we have the platform compatibility for the roborio set up correctly.
12readonly ROBORIO_TARGETS="${TARGETS} //y2020:download_stripped"
Austin Schuh96c7fe42019-02-18 11:37:49 -080013readonly COMMON='-c opt --stamp=no --curses=no --color=no --symlink_prefix=/'
14
James Kuszmaul27da8142019-07-21 16:13:55 -070015# Put everything in different output bases so we can get 5 bazel servers
Austin Schuh96c7fe42019-02-18 11:37:49 -080016# running and keep them all warm.
Austin Schuh10358f22019-01-21 20:25:11 -080017
James Kuszmaul2af1ba82019-02-09 22:16:53 -080018# Include --config=eigen to enable Eigen assertions so that we catch potential
19# bugs with Eigen.
Austin Schuh40861522020-11-28 14:53:53 -080020tools/bazel --output_base=../k8_output_base test \
Austin Schuh96c7fe42019-02-18 11:37:49 -080021 ${COMMON} \
Philipp Schraderdada1072020-11-24 11:34:46 -080022 --config=k8 \
Austin Schuh96c7fe42019-02-18 11:37:49 -080023 --config=eigen \
24 ${TARGETS}
25
Austin Schuh40861522020-11-28 14:53:53 -080026tools/bazel --output_base=../roborio_output_base build \
Austin Schuh96c7fe42019-02-18 11:37:49 -080027 ${COMMON} \
Philipp Schraderdada1072020-11-24 11:34:46 -080028 --config=roborio \
James Kuszmaulbaa897a2020-12-12 18:17:34 -080029 ${ROBORIO_TARGETS}
Austin Schuh96c7fe42019-02-18 11:37:49 -080030
Austin Schuh40861522020-11-28 14:53:53 -080031tools/bazel --output_base=../armhf-debian_output_base build \
Austin Schuh96c7fe42019-02-18 11:37:49 -080032 ${COMMON} \
Philipp Schraderdada1072020-11-24 11:34:46 -080033 --config=armhf-debian \
Austin Schuh96c7fe42019-02-18 11:37:49 -080034 ${TARGETS}
35
Austin Schuh40861522020-11-28 14:53:53 -080036tools/bazel --output_base=../cortex-m4f_output_base build \
Austin Schuh96c7fe42019-02-18 11:37:49 -080037 ${COMMON} \
Philipp Schraderdada1072020-11-24 11:34:46 -080038 --config=cortex-m4f \
Austin Schuh96c7fe42019-02-18 11:37:49 -080039 ${M4F_TARGETS}