Merge pull request #43118 from advaitjain:bazel-micro
PiperOrigin-RevId: 331181829 Change-Id: Ieafb3c0e97064c21eb4f84ae5d98debf41ca4bb1
This commit is contained in:
commit
3a366ec295
@ -35,7 +35,7 @@ make -f tensorflow/lite/micro/tools/make/Makefile \
|
||||
echo "Starting to run micro tests at `date`"
|
||||
|
||||
echo "Running x86 tests at `date`"
|
||||
tensorflow/lite/micro/tools/ci_build/test_x86.sh
|
||||
tensorflow/lite/micro/tools/ci_build/test_x86.sh PRESUBMIT
|
||||
|
||||
echo "Running bluepill tests at `date`"
|
||||
tensorflow/lite/micro/tools/ci_build/test_bluepill.sh
|
||||
|
||||
@ -43,3 +43,14 @@ readable_run make -s -j8 -f tensorflow/lite/micro/tools/make/Makefile test
|
||||
# Also repeat for the debug build.
|
||||
readable_run make -f tensorflow/lite/micro/tools/make/Makefile clean
|
||||
readable_run make -s -j8 -f tensorflow/lite/micro/tools/make/Makefile BUILD_TYPE=debug test
|
||||
|
||||
if [[ ${1} != "PRESUBMIT" ]]; then
|
||||
# Most of TFLM external contributors only use make. We are building a subset of
|
||||
# targets with bazel as part of this script to make it easier for external
|
||||
# contributors to fix these errors prior to creating a pull request.
|
||||
#
|
||||
# We only run the bazel command when this script is run locally (i.e. not via
|
||||
# test_all.sh) to avoid duplicate work on the CI system and also avoid
|
||||
# installing bazel on the TFLM Docker image.
|
||||
readable_run bazel build tensorflow/lite/micro:all
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user