Build universal wheels using GPU CI (#3424)

This commit is contained in:
Rory Mitchell 2018-06-30 01:45:24 +12:00 committed by Philip Hyunsu Cho
parent 30d10ab035
commit 24fde92660

4
Jenkinsfile vendored
View File

@ -97,7 +97,7 @@ def buildPlatformCmake(buildName, conf, nodeReq, dockerTarget) {
sh """ sh """
${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_${dockerTarget}.sh ${dockerRun} ${dockerTarget} ${dockerArgs} tests/ci_build/test_${dockerTarget}.sh
${dockerRun} ${dockerTarget} ${dockerArgs} bash -c "cd python-package; rm -f dist/*; python setup.py bdist_wheel" ${dockerRun} ${dockerTarget} ${dockerArgs} bash -c "cd python-package; rm -f dist/*; python setup.py bdist_wheel --universal"
rm -rf "${distDir}"; mkdir -p "${distDir}/py" rm -rf "${distDir}"; mkdir -p "${distDir}/py"
cp xgboost "${distDir}" cp xgboost "${distDir}"
cp -r lib "${distDir}" cp -r lib "${distDir}"
@ -105,7 +105,7 @@ def buildPlatformCmake(buildName, conf, nodeReq, dockerTarget) {
# Test the wheel for compatibility on a barebones CPU container # Test the wheel for compatibility on a barebones CPU container
${dockerRun} release ${dockerArgs} bash -c " \ ${dockerRun} release ${dockerArgs} bash -c " \
auditwheel show xgboost-*-py2-none-any.whl auditwheel show xgboost-*-py2-none-any.whl
pip install --user python-package/dist/xgboost-*-py2-none-any.whl && \ pip install --user python-package/dist/xgboost-*-none-any.whl && \
python -m nose tests/python" python -m nose tests/python"
""" """
archiveArtifacts artifacts: "${distDir}/**/*.*", allowEmptyArchive: true archiveArtifacts artifacts: "${distDir}/**/*.*", allowEmptyArchive: true