-
-
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.
install dir. Restore. system dependencies. Update ubuntu version. work on script.
- Loading branch information
1 parent
1f1cf3a
commit 4d08c07
Showing
10 changed files
with
132 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ | |
README.md | ||
^doc$ | ||
^Meta$ | ||
^_pkgdown\.yml$ | ||
^docs$ | ||
^pkgdown$ |
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 @@ | ||
docs |
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,4 @@ | ||
url: https://github.com/dmlc/xgboost | ||
|
||
template: | ||
bootstrap: 5 |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
if [[ $# -ne 1 ]] | ||
then | ||
echo "Usage: $0 [branch name]" | ||
exit 1 | ||
fi | ||
|
||
set -euo pipefail | ||
|
||
branch_name=$1 | ||
|
||
# See instructions at: https://cran.r-project.org/bin/linux/ubuntu/ | ||
|
||
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc | ||
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed | ||
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" | ||
|
||
sudo apt install --no-install-recommends r-base | ||
Rscript -e "install.packages(c('pkgdown'), repos = 'https://mirror.las.iastate.edu/CRAN/')" | ||
cd R-package | ||
Rscript -e "pkgdown::build_site()" | ||
cd - | ||
tar cvjf r-docs-${branch_name}.tar.bz2 R-package/docs |
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,19 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
if [[ -z ${BRANCH_NAME:-} ]] | ||
then | ||
echo "Make sure to define environment variable BRANCH_NAME." | ||
exit 1 | ||
fi | ||
|
||
source ops/pipeline/get-docker-registry-details.sh | ||
|
||
IMAGE_URI=${DOCKER_REGISTRY_URL}/xgb-ci.cpu | ||
|
||
echo "--- Build R package doc" | ||
set -x | ||
python3 ops/docker_run.py \ | ||
--image-uri ${IMAGE_URI} \ | ||
-- ops/pipeline/build-r-docs-impl.sh ${BRANCH_NAME} |