Skip to content
Snippets Groups Projects
Commit 21acc5a7 authored by Lars Bilke's avatar Lars Bilke
Browse files

[docs] Some cleanup.

parent 0dd70420
No related branches found
No related tags found
No related merge requests found
Subproject commit f4b0a053e53de2f4fc75a36af1dd0eede236fc68 Subproject commit 819ad94ebd33c80da2772dc82319f77cc14bf175
defaultDockerArgs = '-v /home/jenkins/.ccache:/usr/src/.ccache'
def configure = new ogs.configure()
def build = new ogs.build()
def image = docker.image('ogs6/gcc-base:latest')
image.pull()
image.inside(defaultDockerArgs) {
stage('Configure (Coverage)') {
configure.linux(cmakeOptions: '-DOGS_COVERAGE=ON', script: this)
}
stage('Build (Coverage)') {
build.linux(
script: this,
target: 'testrunner_coverage_cobertura'
)
}
}
stage('Publish (Coverage)') {
step([$class: 'CoberturaPublisher', coberturaReportFile: 'build/*.xml'])
}
def post = new ogs.post()
stage('Docset') {
sh("""
rm -rf build; mkdir build; cd build
cmake -DDOCS_GENERATE_DOCSET=ON ../ogs
cmake --build . --config Release --target doc
cd docs
tar --exclude='.DS_Store' -cvzf ogs6.tgz ogs6.docset
""".stripIndent())
archiveArtifacts 'build/docs/ogs6.tgz, build/docs/ogs6.xml'
post.cleanup()
}
def defaultDockerArgs = '-v /home/jenkins/.ccache:/usr/src/.ccache'
def defaultCMakeOptions =
'-DCMAKE_BUILD_TYPE=Release ' +
'-DOGS_USE_LIS=ON'
def configure = new ogs.configure()
def build = new ogs.build()
def post = new ogs.post()
def helper = new ogs.helper()
node('envinf11w') {
checkout scm
def image = docker.image('ogs6/gcc-gui:latest')
image.pull()
image.inside(defaultDockerArgs) {
stage('Configure') { configure.linux(cmakeOptions: defaultCMakeOptions,
script: this) }
stage('Build') { build.linux(script: this) }
stage('Test') { build.linux(cmd: 'make -j 1',
script: this,
target: 'tests ctest-large-serial') }
}
stage('Post') {
post.publishTestReports 'build/Testing/**/*.xml', 'build/Tests/testrunner.xml'
post.cleanup()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment