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='//...' |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 10 | readonly COMMON='-c opt --stamp=no --curses=no --color=no --symlink_prefix=/' |
| 11 | |
James Kuszmaul | 27da814 | 2019-07-21 16:13:55 -0700 | [diff] [blame] | 12 | # 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] | 13 | # running and keep them all warm. |
Austin Schuh | 10358f2 | 2019-01-21 20:25:11 -0800 | [diff] [blame] | 14 | |
James Kuszmaul | 2af1ba8 | 2019-02-09 22:16:53 -0800 | [diff] [blame] | 15 | # Include --config=eigen to enable Eigen assertions so that we catch potential |
| 16 | # bugs with Eigen. |
Austin Schuh | 4086152 | 2020-11-28 14:53:53 -0800 | [diff] [blame] | 17 | tools/bazel --output_base=../k8_output_base test \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 18 | ${COMMON} \ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 19 | --config=k8 \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 20 | --config=eigen \ |
| 21 | ${TARGETS} |
| 22 | |
Austin Schuh | 4086152 | 2020-11-28 14:53:53 -0800 | [diff] [blame] | 23 | tools/bazel --output_base=../roborio_output_base build \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 24 | ${COMMON} \ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 25 | --config=roborio \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 26 | ${TARGETS} |
| 27 | |
Austin Schuh | 4086152 | 2020-11-28 14:53:53 -0800 | [diff] [blame] | 28 | tools/bazel --output_base=../armhf-debian_output_base build \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 29 | ${COMMON} \ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 30 | --config=armhf-debian \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 31 | ${TARGETS} |
| 32 | |
Austin Schuh | 4086152 | 2020-11-28 14:53:53 -0800 | [diff] [blame] | 33 | tools/bazel --output_base=../cortex-m4f_output_base build \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 34 | ${COMMON} \ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 35 | --config=cortex-m4f \ |
Austin Schuh | 96c7fe4 | 2019-02-18 11:37:49 -0800 | [diff] [blame] | 36 | ${M4F_TARGETS} |