Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
3cc4b6fe
Commit
3cc4b6fe
authored
May 12, 2018
by
Dominik Charousset
Committed by
Joseph Noir
May 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CMake flags for gcovr build
parent
b9b93243
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
34 deletions
+37
-34
Jenkinsfile
Jenkinsfile
+37
-34
No files found.
Jenkinsfile
View file @
3cc4b6fe
...
@@ -48,7 +48,9 @@ buildMatrix = [
...
@@ -48,7 +48,9 @@ buildMatrix = [
]],
]],
// Additional debug build with coverage.
// Additional debug build with coverage.
[
'Linux'
,
[
[
'Linux'
,
[
cmakeArgs:
'-D CAF_ENABLE_GCOV:BOOL=yes'
,
cmakeArgs:
'-D CAF_ENABLE_GCOV:BOOL=yes '
+
'-D CAF_NO_EXCEPTIONS:BOOL=yes '
+
'-D CAF_FORCE_NO_EXCEPTIONS:BOOL=yes'
,
builds:
[
'debug'
],
builds:
[
'debug'
],
tools:
[
'gcovr'
],
tools:
[
'gcovr'
],
extraSteps:
[
'coverageReport'
],
extraSteps:
[
'coverageReport'
],
...
@@ -109,39 +111,39 @@ def buildSteps(buildType, cmakeArgs) {
...
@@ -109,39 +111,39 @@ def buildSteps(buildType, cmakeArgs) {
if
(
STAGE_NAME
.
contains
(
'Windows'
))
{
if
(
STAGE_NAME
.
contains
(
'Windows'
))
{
echo
"Windows build on $NODE_NAME"
echo
"Windows build on $NODE_NAME"
withEnv
([
'PATH=C:\\Windows\\System32;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin'
])
{
withEnv
([
'PATH=C:\\Windows\\System32;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\bin'
])
{
// Configure and build.
// Configure and build.
def
ret
=
bat
(
returnStatus:
true
,
def
ret
=
bat
(
returnStatus:
true
,
script:
"""cmake -E make_directory build
script:
"""cmake -E make_directory build
cd build
cd build
cmake -D CMAKE_BUILD_TYPE=$buildType -G "Visual Studio 15 2017" $cmakeArgs $msOpts ..
cmake -D CMAKE_BUILD_TYPE=$buildType -G "Visual Studio 15 2017" $cmakeArgs $msOpts ..
IF /I "%ERRORLEVEL%" NEQ "0" (
IF /I "%ERRORLEVEL%" NEQ "0" (
EXIT 1
EXIT 1
)
)
EXIT 0"""
)
EXIT 0"""
)
if
(
ret
)
{
if
(
ret
)
{
echo
"[!!!] Configure failed!"
echo
"[!!!] Configure failed!"
currentBuild
.
result
=
'FAILURE'
currentBuild
.
result
=
'FAILURE'
return
return
}
}
// bat "echo \"Step: Build for '${tags}'\""
// bat "echo \"Step: Build for '${tags}'\""
ret
=
bat
(
returnStatus:
true
,
ret
=
bat
(
returnStatus:
true
,
script:
"""cd build
script:
"""cd build
cmake --build .
cmake --build .
IF /I "%ERRORLEVEL%" NEQ "0" (
IF /I "%ERRORLEVEL%" NEQ "0" (
EXIT 1
EXIT 1
)
)
EXIT 0"""
)
EXIT 0"""
)
if
(
ret
)
{
if
(
ret
)
{
echo
"[!!!] Build failed!"
echo
"[!!!] Build failed!"
currentBuild
.
result
=
'FAILURE'
currentBuild
.
result
=
'FAILURE'
return
return
}
}
// Test.
// Test.
ctest
([
ctest
([
arguments:
'--output-on-failure'
,
arguments:
'--output-on-failure'
,
installation:
'cmake auto install'
,
installation:
'cmake auto install'
,
workingDir:
'build'
,
workingDir:
'build'
,
])
])
}
}
}
else
{
}
else
{
echo
"Unix build on $NODE_NAME"
echo
"Unix build on $NODE_NAME"
...
@@ -252,3 +254,4 @@ pipeline {
...
@@ -252,3 +254,4 @@ pipeline {
}
}
}
}
}
}
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