Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
88
Issues
88
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
0508a448
Commit
0508a448
authored
Sep 15, 2019
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: Add a junit output to test_suite and give it to gitlab
parent
26d94450
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
.gitlab-ci.yml
.gitlab-ci.yml
+7
-4
CMakeLists.txt
CMakeLists.txt
+5
-2
No files found.
.gitlab-ci.yml
View file @
0508a448
...
...
@@ -131,8 +131,11 @@ build:no_db_botan:
-
docker
script
:
-
cd build/
-
make check -j$(nproc || echo 1)
-
make e2e -j$(nproc || echo 1)
-
make check_junit ||
true
; make check;
-
make e2e
artifacts
:
reports
:
junit
:
[
"
build/check_result.xml"
]
test:debian:
extends
:
.basic_test
...
...
@@ -146,8 +149,8 @@ test:fedora:
image
:
docker.louiz.org/louiz/biboumi/test-fedora:latest
script
:
-
cd build/
-
make coverage_check
-j$(nproc || echo 1)
-
make coverage_e2e
-j$(nproc || echo 1)
-
make coverage_check
-
make coverage_e2e
-
make coverage
dependencies
:
-
build:fedora
...
...
CMakeLists.txt
View file @
0508a448
...
...
@@ -313,6 +313,8 @@ endif()
#
add_custom_target
(
check COMMAND
"test_suite"
DEPENDS test_suite
)
add_custom_target
(
check_junit COMMAND test_suite -r junit -o check_result.xml
DEPENDS test_suite
)
set_target_properties
(
check PROPERTIES EXCLUDE_FROM_ALL TRUE
)
add_custom_target
(
e2e COMMAND
"python3"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/tests/end_to_end/"
DEPENDS biboumi
)
...
...
@@ -323,13 +325,14 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
include
(
CodeCoverage
)
SETUP_TARGET_FOR_COVERAGE
(
coverage_check
./test_suite
coverage_test_suite
)
coverage_test_suite
"-r junit -o check_result.xml"
)
add_dependencies
(
coverage_check test_suite
)
SETUP_TARGET_FOR_COVERAGE
(
coverage_e2e
python3
coverage_e2e
${
CMAKE_CURRENT_SOURCE_DIR
}
/tests/end_to_end/
)
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/tests/end_to_end/"
)
add_dependencies
(
coverage_e2e biboumi
)
ADD_CUSTOM_TARGET
(
coverage
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment