Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
39b76d56
Commit
39b76d56
authored
Jun 03, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: archive sharness trash dirs
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
d643c045
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
26 deletions
+24
-26
ci/Jenkinsfile
ci/Jenkinsfile
+24
-26
No files found.
ci/Jenkinsfile
View file @
39b76d56
...
...
@@ -68,6 +68,28 @@ def gobuild_step(list) {
}
}
def
sharness_step
=
{
run
,
osname
,
makeargs
,
ignore
->
timeout
(
time:
sharness_timeout
,
unit:
'MINUTES'
)
{
run
"make gx-deps"
try
{
run
"make -j12 ${makeargs} test/sharness/test-results/sharness.xml CONTINUE_ON_S_FAILURE=1 TEST_NO_FUSE=1 TEST_NO_DOCKER=1"
try
{
// archive trash directories if any
run
"tar -czf sharnessTrashDirs-${osname}.tar.gz test/sharness/trash\\ *"
archiveArtifacts
artifacts:
"sharnessTrashDirs-${osname}.tar.gz"
,
fingerprint:
true
}
catch
(
_
)
{}
}
catch
(
err
)
{
throw
err
}
finally
{
if
(!
ignore
)
{
junit
allowEmptyResults:
true
,
testResults:
'test/sharness/test-results/sharness.xml'
}
}
}
}
/* PIPELINE */
ansiColor
(
'xterm'
)
{
withEnv
([
'TERM=xterm-color'
])
{
...
...
@@ -140,36 +162,12 @@ ansiColor('xterm') { withEnv(['TERM=xterm-color']) {
},
linuxSharness:
{
setupStep
(
'linux'
)
{
run
->
timeout
(
time:
sharness_timeout
,
unit:
'MINUTES'
)
{
run
'go get -v github.com/jstemmer/go-junit-report'
run
"make gx-deps"
try
{
run
"make -j12 -Otarget test/sharness/test-results/sharness.xml CONTINUE_ON_S_FAILURE=1 TEST_NO_FUSE=1 TEST_NO_DOCKER=1"
}
catch
(
err
)
{
throw
err
}
finally
{
junit
allowEmptyResults:
true
,
testResults:
'test/sharness/test-results/sharness.xml'
}
}
sharness_step
(
run
,
'linux'
,
'-Otarget'
,
false
)
}
},
//macOS: {
// setupStep('macos') { run ->
// timeout(time: gotest_timeout, unit: 'MINUTES') {
// run 'go get -v github.com/jstemmer/go-junit-report'
// run "make gx-deps"
// try {
// run test + ' -tags="nofuse" 2>&1 | tee output'
// run 'cat output | go-junit-report > junit-report-macos.xml'
// } catch (err) {
// throw err
// } finally {
// /* IGNORE TEST FAILS */
// /* junit 'junit-report-*.xml' */
// }
// }
// sharness_step(run, 'macos', '', true)
// }
//},
//macSharness: {
...
...
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