Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
testoPipelino
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fadi Imani
testoPipelino
Commits
b69f91e7
Commit
b69f91e7
authored
1 year ago
by
Fadi Imani
Browse files
Options
Downloads
Patches
Plain Diff
big project
parent
74a8ef5d
No related branches found
No related tags found
No related merge requests found
Pipeline
#40290
failed
1 year ago
Stage: build
Stage: test
Stage: coverage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+23
-10
23 additions, 10 deletions
.gitlab-ci.yml
with
23 additions
and
10 deletions
.gitlab-ci.yml
+
23
−
10
View file @
b69f91e7
...
@@ -8,6 +8,7 @@ before_script:
...
@@ -8,6 +8,7 @@ before_script:
stages
:
stages
:
-
build
-
build
-
test
-
test
-
coverage
# Define the job for building the project
# Define the job for building the project
build
:
build
:
...
@@ -39,15 +40,27 @@ test:
...
@@ -39,15 +40,27 @@ test:
-
ls -l bin
-
ls -l bin
-
./bin/ExampleTests
-
./bin/ExampleTests
-
ls -l
-
ls -l
-
cd CMakeFiles/ExampleTests.dir/
# - cd CMakeFiles/ExampleTests.dir/
-
ls -l
# - ls -l
-
lcov -d . -c -o coverage.info
# - lcov -d . -c -o coverage.info
-
lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
# - lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
-
lcov --list coverageFiltered.info
# - lcov --list coverageFiltered.info
-
ls -l
# - ls -l
-
pwd
# - pwd
coverage
:
'
/Total:\|\s*([0-9.]+%)\s.*$/'
# coverage: '/Total:\|\s*([0-9.]+%)\s.*$/'
artifacts
:
# artifacts:
# paths:
# - ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info
# when: always
coverage
:
stage
:
coverage
script
:
-
lcov -d build/CMakeFiles/ExampleTests.dir -c -o coverage.info
-
lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
-
lcov --list coverageFiltered.info
coverage
:
'
/Total:\|\s*([0-9.]+%)\s.*$/'
artifacts
:
paths
:
paths
:
-
./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info
-
./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info
when
:
always
when
:
always
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment