Skip to content

Commit

Permalink
Update jenkinsfile to build python 3.9 stages
Browse files Browse the repository at this point in the history
  • Loading branch information
st-pasha committed Jul 1, 2021
1 parent cc8aab3 commit e01810d
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions ci/Jenkinsfile.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ ansiColor('xterm') {
/opt/python/cp36-cp36m/bin/python3.6 ci/ext.py wheel --audit && \
/opt/python/cp37-cp37m/bin/python3.7 ci/ext.py wheel --audit && \
/opt/python/cp38-cp38/bin/python3.8 ci/ext.py wheel --audit && \
/opt/python/cp39-cp39/bin/python3.9 ci/ext.py wheel --audit && \
ls -la dist"
"""
stash name: 'x86_64-manylinux-debugwheels', includes: "dist/*debug*.whl"
Expand Down Expand Up @@ -282,6 +283,8 @@ ansiColor('xterm') {
python ci/ext.py wheel
. /Users/jenkins/anaconda/bin/activate datatable-py38
python ci/ext.py wheel
. /Users/jenkins/anaconda/bin/activate datatable-py39
python ci/ext.py wheel
ls dist
"""
stash name: 'x86_64-macos-wheels', includes: "dist/*.whl"
Expand Down Expand Up @@ -321,6 +324,7 @@ ansiColor('xterm') {
/opt/python/cp36-cp36m/bin/python3.6 ci/ext.py wheel --audit && \
/opt/python/cp37-cp37m/bin/python3.7 ci/ext.py wheel --audit && \
/opt/python/cp38-cp38/bin/python3.8 ci/ext.py wheel --audit && \
/opt/python/cp39-cp39/bin/python3.9 ci/ext.py wheel --audit && \
ls -la dist"
"""
stash name: 'ppc64le-manylinux-debugwheels', includes: "dist/*debug*.whl"
Expand Down Expand Up @@ -381,6 +385,20 @@ ansiColor('xterm') {
}
}
}) <<
namedStage('Test x86_64-manylinux-py39', doPy38Tests, { stageName, stageDir ->
node(NODE_LINUX) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64-manylinux-wheels'
test_in_docker("x86_64-manylinux-py39", "39",
DOCKER_IMAGE_X86_64_MANYLINUX)
}
}
}
}) <<
namedStage('Test x86_64-manylinux-py36-debug', { stageName, stageDir ->
node(NODE_LINUX) {
buildSummary.stageWithSummary(stageName, stageDir) {
Expand Down Expand Up @@ -437,6 +455,20 @@ ansiColor('xterm') {
}
}
}) <<
namedStage('Test ppc64le-manylinux-py39', doPpcTests && doPy38Tests, { stageName, stageDir ->
node(NODE_PPC) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'ppc64le-manylinux-wheels'
test_in_docker("ppc64le-manylinux-py39", "39",
DOCKER_IMAGE_PPC64LE_MANYLINUX)
}
}
}
}) <<
namedStage('Test ppc64le-manylinux-py36-debug', doPpcTests, { stageName, stageDir ->
node(NODE_PPC) {
buildSummary.stageWithSummary(stageName, stageDir) {
Expand All @@ -451,6 +483,19 @@ ansiColor('xterm') {
}
}
}) <<
namedStage('Test x86_64-macos-py39', doPy38Tests, { stageName, stageDir ->
node(NODE_MACOS) {
buildSummary.stageWithSummary(stageName, stageDir) {
cleanWs()
dumpInfo()
dir(stageDir) {
unstash 'datatable-sources'
unstash 'x86_64-macos-wheels'
test_macos('39')
}
}
}
}) <<
namedStage('Test x86_64-macos-py38', doPy38Tests, { stageName, stageDir ->
node(NODE_MACOS) {
buildSummary.stageWithSummary(stageName, stageDir) {
Expand Down Expand Up @@ -724,6 +769,7 @@ def get_python_for_docker(String pyver, String image) {
if (pyver == "36") return "/opt/python/cp36-cp36m/bin/python3.6"
if (pyver == "37") return "/opt/python/cp37-cp37m/bin/python3.7"
if (pyver == "38") return "/opt/python/cp38-cp38/bin/python3.8"
if (pyver == "39") return "/opt/python/cp39-cp39/bin/python3.9"
}
throw new Exception("Unknown python ${pyver} for docker ${image}")
}
Expand Down Expand Up @@ -758,6 +804,7 @@ def test_macos(String pyver) {


def get_env_for_macos(String pyver) {
if (pyver == "39") return "datatable-py39"
if (pyver == "38") return "datatable-py38"
if (pyver == "37") return "datatable-py37-with-pandas"
if (pyver == "36") return "datatable-py36-with-pandas"
Expand Down

0 comments on commit e01810d

Please sign in to comment.