Update .gitlab-ci.yml file
This commit is contained in:
parent
ba429ee7f6
commit
34ab2c292e
@ -19,37 +19,17 @@ default:
|
|||||||
image: rikorose/gcc-cmake
|
image: rikorose/gcc-cmake
|
||||||
|
|
||||||
stages: # List of stages for jobs, and their order of execution
|
stages: # List of stages for jobs, and their order of execution
|
||||||
- build
|
|
||||||
- test
|
- test
|
||||||
|
|
||||||
build-job: # This job runs in the build stage, which runs first.
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- echo "Preparing build"
|
|
||||||
- mkdir build
|
|
||||||
- cd build
|
|
||||||
- echo "execute cmake"
|
|
||||||
#- cmake ..
|
|
||||||
#- cmake --build .
|
|
||||||
#- echo "Compile complete."
|
|
||||||
#- ls -la
|
|
||||||
|
|
||||||
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 install googletest
|
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- echo "execute cmake"
|
|
||||||
- cmake ..
|
- cmake ..
|
||||||
- cmake --build .
|
- cmake --build .
|
||||||
- echo "Running unit tests..."
|
|
||||||
- export GTEST_OUTPUT="xml:report.xml"
|
- export GTEST_OUTPUT="xml:report.xml"
|
||||||
- ctest
|
- ctest
|
||||||
#- ls -la
|
|
||||||
#- ctest --gtest_output="xml:report.xml"
|
|
||||||
- ls -la
|
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
reports:
|
reports:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user