Update .gitlab-ci.yml file

This commit is contained in:
Administrator 2022-01-23 16:18:28 +00:00
parent 4dd01873b2
commit ba429ee7f6

View File

@ -37,18 +37,18 @@ build-job: # This job runs in the build stage, which runs first.
unit-test-job: # This job runs in the test stage. unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully. stage: test # It only starts when the job in the build stage completes successfully.
script: script:
- apt update #- apt update
- apt install googletest #- apt install googletest
- mkdir build - mkdir build
- cd build - cd build
- echo "execute cmake" - echo "execute cmake"
- cmake .. - cmake ..
- cmake --build . - cmake --build .
- echo "Running unit tests..." - echo "Running unit tests..."
#- export GTEST_OUTPUT="xml:report.xml" - export GTEST_OUTPUT="xml:report.xml"
- ctest - ctest
- ls -la #- ls -la
- ctest --gtest_output="xml:report.xml" #- ctest --gtest_output="xml:report.xml"
- ls -la - ls -la
artifacts: artifacts:
when: always when: always