Skip to content
Snippets Groups Projects
Forked from ogs / ogs
18490 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
gcc-tests-large.groovy 888 B
def defaultDockerArgs = '-v /home/jenkins/.ccache:/usr/src/.ccache'
def defaultCMakeOptions =
    '-DCMAKE_BUILD_TYPE=Release ' +
    '-DOGS_LIB_BOOST=System ' +
    '-DOGS_LIB_VTK=System ' +
    '-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('docker') {
    checkout scm
    def image = docker.image('ogs6/gcc-gui:latest')
    image.pull()
    image.inside(defaultDockerArgs) {
        stage('Configure') { configure.linux 'build', "${defaultCMakeOptions}" }
        stage('Build') { build.linux this, 'build' }
        stage('Test') { build.linux this, 'build', 'tests ctest-large' }
    }

    stage('Post') {
        post.publishTestReports 'build/Testing/**/*.xml', 'build/Tests/testrunner.xml',
            'ogs/scripts/jenkins/clang-log-parser.rules'
        post.cleanup()
    }
}