run tests in docker ci

This commit is contained in:
matlabbe
2026-09-21 19:22:11 -07:00
parent 8516479ca0
commit 045a1bad23
7 changed files with 30 additions and 5 deletions
+4 -1
View File
@@ -8,11 +8,14 @@ RUN mkdir -p /root/Documents/RTAB-Map && chmod 777 /root/Documents/RTAB-Map
# Copy current source code
COPY . /root/rtabmap
ARG RUN_TESTS=0
# Build RTAB-Map project
RUN source /ros_entrypoint.sh && \
cd rtabmap/build && \
cmake -DWITH_ALICE_VISION=ON -DWITH_OPENGV=ON .. && \
cmake -DWITH_ALICE_VISION=ON -DWITH_OPENGV=ON -DBUILD_TESTING=$RUN_TESTS .. && \
make -j4 && \
if [ "$RUN_TESTS" = "1" ]; then ctest --output-on-failure -LE "long|performance"; fi && \
make install && \
cd ../.. && \
rm -rf rtabmap && \