Skip to content

Commit

Permalink
#32: try a fix in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Jul 23, 2024
1 parent 03ff59b commit 0a8a880
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ci/docker/build-and-test.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ COPY . /opt/src/vt-tv
RUN mkdir -p /opt/build/vt-tv

# Build
FROM base as build
RUN if [[ $CC == "gcc-11" ]]; \
then VT_TV_COVERAGE_ENABLED=ON; \
else VT_TV_COVERAGE_ENABLED=OFF; \
FROM base AS build
RUN if [[ $CC == "gcc-11" ]]; then \
VT_TV_COVERAGE_ENABLED=ON \
else VT_TV_COVERAGE_ENABLED=OFF \
fi \
/opt/src/vt-tv/ci/build.sh

RUN export VT_TV_COVERAGE_ENABLED=OFF
RUN if [[ $CC == "gcc-11" ]]; then VT_TV_COVERAGE_ENABLED=ON; fi
RUN /opt/src/vt-tv/ci/build.sh

# Unit tests
FROM build AS test-cpp
RUN bash /opt/src/vt-tv/ci/test_cpp.sh
Expand Down

0 comments on commit 0a8a880

Please sign in to comment.