Skip to content

Commit

Permalink
[BUILD] A flag to skip testing stage (this skip testing for of PCC64le)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalohlava committed May 7, 2018
1 parent 3730e63 commit 7089595
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions Jenkinsfile2
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ EXPECTED_SHAS = [
def platformDefaults = [
env : [],
pythonBin: 'python',
test : true,
coverage : true,
]

Expand All @@ -44,6 +45,7 @@ def PPC64LE_PLATFORM = 'ppc64le_linux'
def PPC64LE_BUILD_CONF = platformDefaults + centosDefaults + [
node : 'ibm-power',
coverage : false,
test : false,
dockerImage: "docker.h2o.ai/opsh2oai/datatable-build-ppc64le_centos7:${DOCKER_IMAGE_TAG}"
]

Expand Down Expand Up @@ -162,16 +164,22 @@ BUILD_MATRIX.each { platform, config ->
final def testDir = "test-${platform}-${testEnv}"
try {
def testStageName = "Test ${platform} with ${testEnv}"
testStageName = appendLargeTestsSuffixIfRequired(testStageName, needsLargerTest)
withCustomCommitStates(scm, H2O_OPS_TOKEN_CREDS_ID, testStageName) {
stage(testStageName) {
dir(testDir) {
unstash 'datatable-sources'
}
def testClosure = {
project.test(testDir, platform, getVenvActivationCmd(platform, testEnv), BUILD_MATRIX[platform]['env'], needsLargerTest, TARGET_DIR)
if (config.test) {
testStageName = appendLargeTestsSuffixIfRequired(testStageName, needsLargerTest)
withCustomCommitStates(scm, H2O_OPS_TOKEN_CREDS_ID, testStageName) {
stage(testStageName) {
dir(testDir) {
unstash 'datatable-sources'
}
def testClosure = {
project.test(testDir, platform, getVenvActivationCmd(platform, testEnv), BUILD_MATRIX[platform]['env'], needsLargerTest, TARGET_DIR)
}
callInEnv(config.dockerImage, dockerArgs, testClosure)
}
callInEnv(config.dockerImage, dockerArgs, testClosure)
}
} else {
stage(testStageName) {
echo "SKIPPED"
}
}
} catch (e) {
Expand Down

0 comments on commit 7089595

Please sign in to comment.