-
-
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.
Allow most pipeline scripts to be run locally
- Loading branch information
Showing
22 changed files
with
158 additions
and
150 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
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,19 +1,24 @@ | ||
#!/bin/bash | ||
## Build docs for the JVM packages and package it in a tarball | ||
## Note: Note: this script assumes that the user has already built libxgboost4j.so | ||
## Note: this script assumes that the user has already built libxgboost4j.so | ||
## and place it in the lib/ directory. | ||
|
||
set -euox pipefail | ||
|
||
source ops/pipeline/enforce-ci.sh | ||
|
||
echo "--- Build JVM packages doc" | ||
|
||
if [[ -z ${BRANCH_NAME:-} ]] | ||
then | ||
echo "Make sure to define environment variable BRANCH_NAME." | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -f lib/libxgboost4j.so ]] | ||
then | ||
echo "Must place libxgboost4j.so in lib/ first" | ||
exit 2 | ||
fi | ||
|
||
python3 ops/docker_run.py \ | ||
--container-id xgb-ci.jvm_gpu_build \ | ||
-- ops/pipeline/build-jvm-doc-impl.sh ${BRANCH_NAME} | ||
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]] | ||
then | ||
echo "--- Upload JVM packages doc" | ||
aws s3 cp jvm-packages/${BRANCH_NAME}.tar.bz2 \ | ||
s3://xgboost-docs/${BRANCH_NAME}.tar.bz2 --acl public-read --no-progress | ||
fi |
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
Oops, something went wrong.