Skip to content

Commit

Permalink
Simplify API #2
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalohlava committed Jul 12, 2018
1 parent 155b201 commit a1cc113
Showing 1 changed file with 87 additions and 122 deletions.
209 changes: 87 additions & 122 deletions ci/Jenkinsfile2
Original file line number Diff line number Diff line change
Expand Up @@ -293,38 +293,30 @@ ansiColor('xterm') {
}
}
}) <<
namedStage('Test Py36 with Numpy on x86_64_linux', { stageName, stageDir ->
if(!isPrJob() || params.FORCE_ALL_TESTS_IN_PR) {
node(NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_centos7-py36-whl'
testInDocker('ubuntu_test_py36_with_numpy_in_docker', needsLargerTest)
}
namedStage('Test Py36 with Numpy on x86_64_linux', !isPrJob() || params.FORCE_ALL_TESTS_IN_PR, { stageName, stageDir ->
node(NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_centos7-py36-whl'
testInDocker('ubuntu_test_py36_with_numpy_in_docker', needsLargerTest)
}
}
} else {
markSkipped(stageName)
}
}) <<
namedStage('Test Py36 on x86_64_linux', { stageName, stageDir ->
if(!isPrJob() || params.FORCE_ALL_TESTS_IN_PR) {
node(NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_centos7-py36-whl'
testInDocker('ubuntu_test_py36_in_docker', needsLargerTest)
}
namedStage('Test Py36 on x86_64_linux', !isPrJob() || params.FORCE_ALL_TESTS_IN_PR, { stageName, stageDir ->
node(NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_centos7-py36-whl'
testInDocker('ubuntu_test_py36_in_docker', needsLargerTest)
}
}
} else {
markSkipped(stageName)
}
}) <<
namedStage('Test Py36 with Pandas on x86_64_centos7', { stageName, stageDir ->
Expand Down Expand Up @@ -353,102 +345,82 @@ ansiColor('xterm') {
}
}
}) <<
namedStage('Test Py36 with Numpy on x86_64_centos7', { stageName, stageDir ->
if (!isPrJob() || params.FORCE_ALL_TESTS_IN_PR) {
node(NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_centos7-py36-whl'
testInDocker('centos7_test_py36_with_numpy_in_docker', needsLargerTest)
}
namedStage('Test Py36 with Numpy on x86_64_centos7', !isPrJob() || params.FORCE_ALL_TESTS_IN_PR, { stageName, stageDir ->
node(NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_centos7-py36-whl'
testInDocker('centos7_test_py36_with_numpy_in_docker', needsLargerTest)
}
}
} else {
markSkipped(stageName)
}
}) <<
namedStage('Test Py36 on x86_64_centos7', { stageName, stageDir ->
if (!isPrJob() || params.FORCE_ALL_TESTS_IN_PR) {
node(NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_centos7-py36-whl'
testInDocker('centos7_test_py36_in_docker', needsLargerTest)
}
namedStage('Test Py36 on x86_64_centos7', !isPrJob() || params.FORCE_ALL_TESTS_IN_PR, { stageName, stageDir ->
node(NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_centos7-py36-whl'
testInDocker('centos7_test_py36_in_docker', needsLargerTest)
}
}
} else {
echo 'Test Py36 on x86_64_centos7 - SKIPPED'
}
}) <<
namedStage('Test Py36 with Pandas on ppc64le_centos7', { stageName, stageDir ->
namedStage('Test Py36 with Pandas on ppc64le_centos7', doPPC() && doTestPPC64LE(), { stageName, stageDir ->
node(PPC_NODE_LABEL) {
buildSummary.stageWithSummary(stageName) {
if (doPPC() && doTestPPC64LE()) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'ppc64le_centos7-py36-whl'
testInDocker('centos7_test_py36_with_pandas_in_docker', needsLargerTest)
}
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'ppc64le_centos7-py36-whl'
testInDocker('centos7_test_py36_with_pandas_in_docker', needsLargerTest)
}
}
}
}) <<
namedStage('Test Py35 with Pandas on ppc64le_centos7', { stageName, stageDir ->
namedStage('Test Py35 with Pandas on ppc64le_centos7', doPPC() && doTestPPC64LE(), { stageName, stageDir ->
node(PPC_NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
if (doPPC() && doTestPPC64LE()) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'ppc64le_centos7-py35-whl'
testInDocker('centos7_test_py35_with_pandas_in_docker', needsLargerTest)
}
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'ppc64le_centos7-py35-whl'
testInDocker('centos7_test_py35_with_pandas_in_docker', needsLargerTest)
}
}
}
}) <<
namedStage('Test Py36 with Numpy on ppc64le_centos7', { stageName, stageDir ->
if (!isPrJob() && doPPC() && doTestPPC64LE() || params.FORCE_ALL_TESTS_IN_PR) {
node(PPC_NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'ppc64le_centos7-py36-whl'
testInDocker('centos7_test_py36_with_numpy_in_docker', needsLargerTest)
}
namedStage('Test Py36 with Numpy on ppc64le_centos7', !isPrJob() && doPPC() && doTestPPC64LE() || params.FORCE_ALL_TESTS_IN_PR, { stageName, stageDir ->
node(PPC_NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'ppc64le_centos7-py36-whl'
testInDocker('centos7_test_py36_with_numpy_in_docker', needsLargerTest)
}
}
} else {
echo 'Test Py36 with Numpy on ppc64le_centos7 - SKIPPED'
}
}) <<
namedStage('Test Py36 on ppc64le_centos7', { stageName, stageDir ->
if (!isPrJob() && doPPC() && doTestPPC64LE() || params.FORCE_ALL_TESTS_IN_PR) {
node(PPC_NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'ppc64le_centos7-py36-whl'
testInDocker('centos7_test_py36_in_docker', needsLargerTest)
}
namedStage('Test Py36 on ppc64le_centos7', !isPrJob() && doPPC() && doTestPPC64LE() || params.FORCE_ALL_TESTS_IN_PR, { stageName, stageDir ->
node(PPC_NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'ppc64le_centos7-py36-whl'
testInDocker('centos7_test_py36_in_docker', needsLargerTest)
}
}
} else {
echo 'Test Py36 on ppc64le_centos7 - SKIPPED'
}
}) <<
namedStage('Test Py36 with Pandas on x86_64_osx', { stageName, stageDir ->
Expand Down Expand Up @@ -477,40 +449,33 @@ ansiColor('xterm') {
}
}
}) <<
namedStage('Test Py36 with Numpy on x86_64_osx', { stageName, stageDir ->
if (!isPrJob() || params.FORCE_ALL_TESTS_IN_PR) {
node(OSX_NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_osx-py36-whl'
testOSX('datatable-py36-with-numpy', needsLargerTest)
}
namedStage('Test Py36 with Numpy on x86_64_osx', !isPrJob() || params.FORCE_ALL_TESTS_IN_PR, { stageName, stageDir ->
node(OSX_NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_osx-py36-whl'
testOSX('datatable-py36-with-numpy', needsLargerTest)
}
}
} else {
echo 'Test Py36 with Numpy on x86_64_osx - SKIPPED'
}
}) <<
namedStage('Test Py36 on x86_64_osx', { stageName, stageDir ->
if (!isPrJob() || params.FORCE_ALL_TESTS_IN_PR) {
node(OSX_NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_osx-py36-whl'
testOSX('datatable-py36', needsLargerTest)
}
namedStage('Test Py36 on x86_64_osx', !isPrJob() || params.FORCE_ALL_TESTS_IN_PR, { stageName, stageDir ->
node(OSX_NODE_LABEL) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64_osx-py36-whl'
testOSX('datatable-py36', needsLargerTest)
}
}
} else {
echo 'Test Py36 on x86_64_osx - SKIPPED'
}
})
// Execute defined stages in parallel
parallel(testStages)
}
// Build sdist
Expand Down

0 comments on commit a1cc113

Please sign in to comment.