-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all commands to separate script files
- Loading branch information
Showing
15 changed files
with
84 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,3 @@ dependencies: | |
- cmake | ||
- ninja | ||
- python-build | ||
- c-compiler | ||
- cxx-compiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
## Deploy JVM packages to S3 bucket | ||
|
||
set -euox pipefail | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
## Test XGBoost Python wheel on MacOS | ||
|
||
set -euox pipefail | ||
|
||
brew install ninja | ||
|
||
mkdir build | ||
cd build | ||
# Set prefix, to use OpenMP library from Conda env | ||
# See https://github.com/dmlc/xgboost/issues/7039#issuecomment-1025038228 | ||
# to learn why we don't use libomp from Homebrew. | ||
cmake .. -GNinja -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DBUILD_DEPRECATED_CLI=ON | ||
ninja | ||
|
||
cd python-package | ||
python --version | ||
pip install -v . | ||
|
||
pytest -s -v -rxXs --durations=0 ./tests/python | ||
pytest -s -v -rxXs --durations=0 ./tests/test_distributed/test_with_dask |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
## Test installing Python XGBoost from source distribution | ||
|
||
set -euox pipefail | ||
|
||
cd python-package | ||
python --version | ||
python -m build --sdist | ||
pip install -v ./dist/xgboost-*.tar.gz | ||
cd .. | ||
python -c 'import xgboost' |
1 change: 1 addition & 0 deletions
1
ops/pipeline/test-python-impl.sh → ops/pipeline/test-python-wheel-impl.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
## Companion script for ops/pipeline/test-python-wheel.sh | ||
|
||
set -eo pipefail | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
## Test if Python XGBoost can be configured to use libxgboost.so from the system prefix | ||
|
||
set -euox pipefail | ||
|
||
sudo apt-get update && sudo apt-get install -y ninja-build | ||
|
||
mkdir build | ||
cd build | ||
cmake .. -GNinja | ||
ninja | ||
|
||
# Copy libxgboost.so to system prefix | ||
cp -v lib/* "$(python -c 'import sys; print(sys.base_prefix)')/lib" | ||
|
||
# Now configure Python XGBoost to use libxgboost.so from the system prefix | ||
cd python-package | ||
pip install virtualenv | ||
virtualenv venv | ||
source venv/bin/activate && \ | ||
pip install -v . --config-settings use_system_libxgboost=True && \ | ||
python -c 'import xgboost' |