Adrian Brandemuehl | 2ed7435 | 2017-08-23 20:29:57 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
Brian Silverman | 1e5cc02 | 2018-02-03 22:59:48 -0500 | [diff] [blame] | 3 | set -x |
Adrian Brandemuehl | 2ed7435 | 2017-08-23 20:29:57 -0700 | [diff] [blame] | 4 | |
Austin Schuh | 47d8bef | 2020-08-26 21:54:38 -0700 | [diff] [blame] | 5 | # No need to pass this through. It hurts caching. |
| 6 | unset SSH_AUTH_SOCK |
| 7 | |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 8 | readonly TARGETS='//... @com_github_google_glog//... @com_google_ceres_solver//...' |
Austin Schuh | de82171 | 2019-08-03 18:16:49 -0700 | [diff] [blame] | 9 | readonly M4F_TARGETS='//...' |
James Kuszmaul | baa897a | 2020-12-12 18:17:34 -0800 | [diff] [blame] | 10 | # 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. |
| 12 | readonly ROBORIO_TARGETS="${TARGETS} //y2020:download_stripped" |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 13 | readonly COMMON='-c opt --stamp=no --curses=no --color=no --symlink_prefix=/' |
| 14 | |
James Kuszmaul | 27da814 | 2019-07-21 16:13:55 -0700 | [diff] [blame] | 15 | # Put everything in different output bases so we can get 5 bazel servers |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 16 | # running and keep them all warm. |
Austin Schuh | 10358f2 | 2019-01-21 20:25:11 -0800 | [diff] [blame] | 17 | |
James Kuszmaul | 2af1ba8 | 2019-02-09 22:16:53 -0800 | [diff] [blame] | 18 | # Include --config=eigen to enable Eigen assertions so that we catch potential |
| 19 | # bugs with Eigen. |
Austin Schuh | 4086152 | 2020-11-28 14:53:53 -0800 | [diff] [blame] | 20 | tools/bazel --output_base=../k8_output_base test \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 21 | ${COMMON} \ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 22 | --config=k8 \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 23 | --config=eigen \ |
| 24 | ${TARGETS} |
| 25 | |
Austin Schuh | 4086152 | 2020-11-28 14:53:53 -0800 | [diff] [blame] | 26 | tools/bazel --output_base=../roborio_output_base build \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 27 | ${COMMON} \ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 28 | --config=roborio \ |
James Kuszmaul | baa897a | 2020-12-12 18:17:34 -0800 | [diff] [blame] | 29 | ${ROBORIO_TARGETS} |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 30 | |
Austin Schuh | 4086152 | 2020-11-28 14:53:53 -0800 | [diff] [blame] | 31 | tools/bazel --output_base=../armhf-debian_output_base build \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 32 | ${COMMON} \ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 33 | --config=armhf-debian \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 34 | ${TARGETS} |
| 35 | |
Austin Schuh | 4086152 | 2020-11-28 14:53:53 -0800 | [diff] [blame] | 36 | tools/bazel --output_base=../cortex-m4f_output_base build \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 37 | ${COMMON} \ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 38 | --config=cortex-m4f \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 39 | ${M4F_TARGETS} |