Repository navigation
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·63 lines (49 loc) · 1.61 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·63 lines (49 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# Copyright (c) 2020, NVIDIA CORPORATION.
#################################
# cuDF Docs build script for CI #
#################################
if [ -z "$PROJECT_WORKSPACE" ]; then
echo ">>>> ERROR: Could not detect PROJECT_WORKSPACE in environment"
echo ">>>> WARNING: This script contains git commands meant for automated building, do not run locally"
exit 1
fi
export DOCS_WORKSPACE=$WORKSPACE/docs
export PATH=/conda/bin:/usr/local/cuda/bin:$PATH
export HOME=$WORKSPACE
export PROJECT_WORKSPACE=/rapids/cudf
export LIBCUDF_KERNEL_CACHE_PATH="$HOME/.jitify-cache"
export NIGHTLY_VERSION=$(echo $BRANCH_VERSION | awk -F. '{print $2}')
export PROJECTS=(cudf libcudf)
gpuci_logger "Check environment..."
env
gpuci_logger "Check GPU usage..."
nvidia-smi
gpuci_logger "Activate conda env..."
. /opt/conda/etc/profile.d/conda.sh
conda activate rapids
gpuci_logger "Check versions..."
python --version
$CC --version
$CXX --version
conda info
conda config --show-sources
conda list --show-channel-urls
#libcudf Doxygen build
gpuci_logger "Build libcudf docs..."
cd $PROJECT_WORKSPACE/cpp/doxygen
doxygen Doxyfile
#cudf Sphinx Build
gpuci_logger "Build cuDF docs..."
cd $PROJECT_WORKSPACE/docs/cudf
make html
#Commit to Website
cd $DOCS_WORKSPACE
for PROJECT in ${PROJECTS[@]}; do
if [ ! -d "api/$PROJECT/$BRANCH_VERSION" ]; then
mkdir -p api/$PROJECT/$BRANCH_VERSION
fi
rm -rf $DOCS_WORKSPACE/api/$PROJECT/$BRANCH_VERSION/*
done
mv $PROJECT_WORKSPACE/docs/cudf/build/html/* $DOCS_WORKSPACE/api/cudf/$BRANCH_VERSION
mv $PROJECT_WORKSPACE/cpp/doxygen/html/* $DOCS_WORKSPACE/api/libcudf/$BRANCH_VERSION