diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ffc2cdd..3bd7e77 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ stages: - web-app-tests - pico-sensor-docker-build + - pico-sensor-test - pico-sensor-release include: diff --git a/pico-sensor/.gitlab-ci.yml b/pico-sensor/.gitlab-ci.yml index 13f0e47..ff42274 100644 --- a/pico-sensor/.gitlab-ci.yml +++ b/pico-sensor/.gitlab-ci.yml @@ -3,6 +3,7 @@ variables: stages: - pico-sensor-docker-build + - pico-sensor-test - pico-sensor-release pico-sensor-docker-build: @@ -19,20 +20,23 @@ pico-sensor-docker-build: - changes: - pico-sensor/Dockerfile -pico-sensor-test: - #stage: pico-sensor-test - image: $PICO_DOCKER_IMAGE - variables: - TUNNEL_ID: "801000372" # Tunnel ID to reach the pico-sensor device - script: - - cd pico-sensor - - cmake --preset Test -DTUNNEL_ID=$TUNNEL_ID - - cmake --build --preset app-test - - cd build/Test - - ctest -T test --output-on-failure --output-junit test-results.xml$ - artifacts: - paths: - - pico-sensor/build/Test/test-results.xml +# Uncomment the following section if you want to run tests on the pico-sensor device. +# Note: This requires a tunnel to the device +# Currently no tunnel is set up, so this section is commented out. +# pico-sensor-test: +# stage: pico-sensor-test +# image: $PICO_DOCKER_IMAGE +# variables: +# TUNNEL_ID: "801000372" # Tunnel ID to reach the pico-sensor device +# script: +# - cd pico-sensor +# - cmake --preset Test -DTUNNEL_ID=$TUNNEL_ID +# - cmake --build --preset app-test +# - cd build/Test +# - ctest -T test --output-on-failure --output-junit test-results.xml$ +# artifacts: +# paths: +# - pico-sensor/build/Test/test-results.xml pico-sensor-release: stage: pico-sensor-release