File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -258,9 +258,6 @@ COPY *\.bzl /ovms/
258258COPY yarn.lock /ovms/
259259COPY package.json /ovms/
260260
261- # prebuild dependencies before copying sources
262- RUN bazel build --jobs=$JOBS ${debug_bazel_flags} //:ovms_dependencies @com_google_googletest//:gtest
263-
264261# hadolint ignore=DL3059
265262RUN cp -v /etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt
266263
@@ -287,15 +284,12 @@ RUN bash -c "sed -i -e 's|REPLACE_PROJECT_VERSION|${PROJECT_VERSION}|g' /ovms/sr
287284 if [ "$ov_use_binary" == "0" ] ; then sed -i -e "s#REPLACE_OPENVINO_NAME#$(git --git-dir /openvino/.git log -n 1 | head -n 1 | cut -d' ' -f2 | head -c 12)#g" /ovms/src/version.hpp ; fi && \
288285 bash -c "sed -i -e 's|REPLACE_BAZEL_BUILD_FLAGS|${debug_bazel_flags}${minitrace_flags}|g' /ovms/src/version.hpp"
289286
290- # Custom Nodes
291- RUN bazel build --jobs=$JOBS ${debug_bazel_flags} //src:release_custom_nodes
292287
293288# OVMS
294289ARG OPTIMIZE_BUILDING_TESTS=0
295- # Builds unit tests together with ovms server in one step
296- # It speeds up CI when tests are executed outside of the image building
297- # hadolint ignore=SC2046
298- RUN bazel build --jobs=$JOBS ${debug_bazel_flags} ${minitrace_flags} //src:ovms $(if [ "$OPTIMIZE_BUILDING_TESTS" == "1" ] ; then echo -n //src:ovms_test; fi)
290+ RUN bazel build --jobs=$JOBS ${debug_bazel_flags} //:ovms_dependencies @com_google_googletest//:gtest && \
291+ bazel build --jobs=$JOBS ${debug_bazel_flags} //src:release_custom_nodes && \
292+ bazel build --jobs=$JOBS ${debug_bazel_flags} ${minitrace_flags} //src:ovms $(if [ "$OPTIMIZE_BUILDING_TESTS" == "1" ] ; then echo -n //src:ovms_test; fi)
299293
300294# Tests execution
301295COPY ci/check_coverage.bat /ovms/
You can’t perform that action at this time.
0 commit comments