cmake(docker): Add output log when tests failed
This commit is contained in:
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -22,7 +22,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -12,7 +12,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -12,7 +12,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -17,7 +17,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -14,7 +14,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -14,7 +14,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -23,7 +23,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -15,7 +15,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -14,7 +14,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -16,7 +16,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -14,7 +14,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -13,7 +13,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -22,7 +22,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -13,7 +13,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -13,7 +13,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -21,7 +21,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
@@ -15,7 +15,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
|
||||
@@ -14,7 +14,7 @@ RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
|
||||
FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
|
||||
Reference in New Issue
Block a user