IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
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
Issue 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
Antonio Augusto Alves Junior
corsika
Commits
6efc6903
Commit
6efc6903
authored
5 years ago
by
Hans Dembinski
Browse files
Options
Downloads
Patches
Plain Diff
generating report and publish as artefact
parent
3663f5e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-4
9 additions, 4 deletions
.gitlab-ci.yml
Tools/coverage.sh
+9
-8
9 additions, 8 deletions
Tools/coverage.sh
with
18 additions
and
12 deletions
.gitlab-ci.yml
+
9
−
4
View file @
6efc6903
...
...
@@ -10,22 +10,27 @@ build:
script
:
-
mkdir build
-
cd build
-
cmake ..
-
cmake ..
-DCOVERAGE=ON
-
cmake --build . -- -j 4
-
ctest -j4 -V >& test.log
-
../Tools/coverage.sh
after_script
:
-
cd build
-
ls
-
gzip -v -9 -S .gz test.log
-
tar cjf coverage-report.tar.bz2 coverage-report
-
pwd
artifacts
:
expire_in
:
1 week
paths
:
-
build/test.log.gz
when
:
on_failure
reports
:
junit
:
-
build/test_outputs/junit*.xml
reports
:
junit
:
-
build/test_outputs/junit*.xml
when
:
on_success
paths
:
-
build/coverage-report.tar.bz2
pages
:
stage
:
build
...
...
This diff is collapsed.
Click to expand it.
Tools/coverage.sh
+
9
−
8
View file @
6efc6903
...
...
@@ -22,11 +22,12 @@ $LCOV --base-directory `pwd` \
# remove uninteresting entries
$LCOV
--extract
coverage.info
"*/corsika/*"
--output-file
coverage.info
if
[
$CI
]
;
then
echo
"Coverage report on CI currently disabled"
# upload if on CI
# curl -s https://codecov.io/bash | bash -s - -f coverage.info -X gcov -x $GCOV
else
# otherwise just print
$LCOV_DIR
/bin/genhtml coverage.info
-o
coverage-report
fi
# if [ $CI ]; then
# # upload if on CI
# curl -s https://codecov.io/bash | bash -s - -f coverage.info -X gcov -x $GCOV
# else
# # otherwise just print
# $LCOV_DIR/bin/genhtml coverage.info -o coverage-report
# fi
$LCOV_DIR
/bin/genhtml coverage.info
-o
coverage-report
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