Test wheel compatibility on CPU containers, for all pull requests (#3762)
* Test wheel compatibility on CPU containers, for all pull requests * Run wheel test only when multi-GPU flag is not set
This commit is contained in:
parent
e0fd60f4e5
commit
ae7e58b96e
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -86,5 +86,17 @@ def buildPlatformCmake(buildName, conf, nodeReq, dockerTarget) {
|
|||||||
${dockerRun} ${dockerTarget} ${dockerArgs} tests/ci_build/build_via_cmake.sh ${opts}
|
${dockerRun} ${dockerTarget} ${dockerArgs} tests/ci_build/build_via_cmake.sh ${opts}
|
||||||
${dockerRun} ${dockerTarget} ${dockerArgs} tests/ci_build/test_${test_suite}.sh
|
${dockerRun} ${dockerTarget} ${dockerArgs} tests/ci_build/test_${test_suite}.sh
|
||||||
"""
|
"""
|
||||||
|
if (!conf["multiGpu"]) {
|
||||||
|
sh """
|
||||||
|
${dockerRun} ${dockerTarget} ${dockerArgs} bash -c "cd python-package; rm -f dist/*; python setup.py bdist_wheel --universal"
|
||||||
|
rm -rf "${distDir}"; mkdir -p "${distDir}/py"
|
||||||
|
cp xgboost "${distDir}"
|
||||||
|
cp -r python-package/dist "${distDir}/py"
|
||||||
|
# Test the wheel for compatibility on a barebones CPU container
|
||||||
|
${dockerRun} release ${dockerArgs} bash -c " \
|
||||||
|
pip install --user python-package/dist/xgboost-*-none-any.whl && \
|
||||||
|
python -m nose tests/python"
|
||||||
|
"""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -110,11 +110,6 @@ def buildPlatformCmake(buildName, conf, nodeReq, dockerTarget) {
|
|||||||
cp xgboost "${distDir}"
|
cp xgboost "${distDir}"
|
||||||
cp -r lib "${distDir}"
|
cp -r lib "${distDir}"
|
||||||
cp -r python-package/dist "${distDir}/py"
|
cp -r python-package/dist "${distDir}/py"
|
||||||
# Test the wheel for compatibility on a barebones CPU container
|
|
||||||
${dockerRun} release ${dockerArgs} bash -c " \
|
|
||||||
auditwheel show xgboost-*-py2-none-any.whl
|
|
||||||
pip install --user python-package/dist/xgboost-*-none-any.whl && \
|
|
||||||
python -m nose tests/python"
|
|
||||||
"""
|
"""
|
||||||
archiveArtifacts artifacts: "${distDir}/**/*.*", allowEmptyArchive: true
|
archiveArtifacts artifacts: "${distDir}/**/*.*", allowEmptyArchive: true
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user