Skip to content

Commit

Permalink
Add pipeline for cppruntime tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed May 31, 2019
1 parent dbbd56e commit 2b3b8d8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .CI/Jenkinsfile.cpp
@@ -0,0 +1,51 @@
def common
pipeline {
agent none
options {
newContainerPerStage()
}
environment {
LC_ALL = 'C.UTF-8'
}
// stages are ordered according to execution time; highest time first
// nodes are selected based on a priority (in Jenkins config)
stages {
stage('Environment') {
agent {
label 'linux'
}
steps {
script {
if (changeRequest()) {
def buildNumber = env.BUILD_NUMBER as int
if (buildNumber > 1) milestone(buildNumber - 1)
milestone(buildNumber)
}
common = load("${env.workspace}/.CI/common.groovy")
}
}
}
stage('cpp-test') {
agent {
dockerfile {
additionalBuildArgs '--pull'
dir '.CI/cache'
label 'linux'
args "--mount type=volume,source=runtest-cpp-test-cache,target=/cache/runtest " +
"--mount type=volume,source=omlibrary-cache,target=/cache/omlibrary"
}
}
environment {
RUNTESTDB = "/cache/runtest/"
LIBRARIES = "/cache/omlibrary"
}
steps {
script {
common.buildOMC('clang', 'clang++', '--without-hwloc')
common.makeLibsAndCache()
common.partest(true, '-cppruntime')
}
}
}
}
}
2 changes: 1 addition & 1 deletion .CI/common.groovy
Expand Up @@ -68,7 +68,7 @@ void makeLibsAndCache(libs='core') {
sh "find libraries"
sh "ln -s '${env.LIBRARIES}/svn' '${env.LIBRARIES}/git' libraries/"
generateTemplates()
def cmd = "make -j${numLogicalCPU()} --output-sync omlibrary-${libs} ReferenceFiles"
def cmd = "make -j${numLogicalCPU()} --output-sync omlibrary-${libs} ReferenceFiles omc-diff"
if (env.SHARED_LOCK) {
lock(env.SHARED_LOCK) {
sh cmd
Expand Down

0 comments on commit 2b3b8d8

Please sign in to comment.