Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
468809be
Commit
468809be
authored
Nov 28, 2018
by
Paul
Browse files
Add codecov support
parent
84e7335e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
Jenkinsfile
Jenkinsfile
+13
-1
No files found.
Jenkinsfile
View file @
468809be
...
@@ -113,6 +113,18 @@ rocmtest tidy: rocmnode('rocmtest') { cmake_build ->
...
@@ -113,6 +113,18 @@ rocmtest tidy: rocmnode('rocmtest') { cmake_build ->
def
cmake_linker_flags
=
"-DCMAKE_EXE_LINKER_FLAGS='${linker_flags}' -DCMAKE_SHARED_LINKER_FLAGS='${linker_flags}'"
def
cmake_linker_flags
=
"-DCMAKE_EXE_LINKER_FLAGS='${linker_flags}' -DCMAKE_SHARED_LINKER_FLAGS='${linker_flags}'"
// TODO: Add bounds-strict
// TODO: Add bounds-strict
def
sanitizers
=
"undefined,address"
def
sanitizers
=
"undefined,address"
cmake_build
(
"g++-7"
,
"-DCMAKE_BUILD_TYPE=debug ${cmake_linker_flags} -DCMAKE_CXX_FLAGS_DEBUG='-g -fno-omit-frame-pointer -fsanitize-address-use-after-scope -fsanitize=${sanitizers} -fno-sanitize-recover=${sanitizers}'"
)
def
debug_flags
=
"-g -fprofile-arcs -ftest-coverage -fno-omit-frame-pointer -fsanitize-address-use-after-scope -fsanitize=${sanitizers} -fno-sanitize-recover=${sanitizers}"
cmake_build
(
"g++-7"
,
"-DCMAKE_BUILD_TYPE=debug ${cmake_linker_flags} -DCMAKE_CXX_FLAGS_DEBUG='${debug_flags}'"
)
}
stage
(
'Codecov'
)
{
env
.
CODECOV_TOKEN
=
"8545af1c-f90b-4345-92a5-0d075503ca56"
sh
'''
cd build
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
'''
}
}
}
}
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