Commit e8a635e9 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Arranged GitLab CI/CD for PathComp component

parent cf7366a5
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -38,14 +38,18 @@ RUN mv pathComp /var/teraflow/bin

# Build code coverage version
RUN make clean
#RUN make coverage
RUN make debug
RUN make coverage
#RUN make debug

EXPOSE 8081

# builder defines coverage version of pathcomp by default
#ENTRYPOINT [ "./pathComp-cvr", "config/pathcomp.conf", "pathcomp.log" ]
ENTRYPOINT [ "valgrind", "--leak-check=full", "--show-leak-kinds=all", "--track-origins=yes", "--show-error-list=yes", "./pathComp-dbg", "config/pathcomp.conf", "pathcomp.log" ]
# coverage entrypoint:
ENTRYPOINT [ "./pathComp-cvr", "config/pathcomp.conf", "pathcomp.log" ]
# debug entrypoint:
#ENTRYPOINT [ "./pathComp-dbg", "config/pathcomp.conf", "pathcomp.log" ]
# debug entrypoint with memory tracking:
#ENTRYPOINT [ "valgrind", "--leak-check=full", "--show-leak-kinds=all", "--track-origins=yes", "--show-error-list=yes", "./pathComp-dbg", "config/pathcomp.conf", "pathcomp.log" ]


# Stage 2
@@ -66,4 +70,5 @@ COPY --from=builder /var/teraflow/bin/pathComp .
COPY --from=builder /var/teraflow/config/pathcomp.conf ./config
COPY --from=builder /var/teraflow/tests/. ./tests

# release entrypoint:
ENTRYPOINT [ "./pathComp", "config/pathcomp.conf", "pathcomp.log" ]