Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 9426be61 authored by Jason Kridner's avatar Jason Kridner
Browse files

ci: WIP

parent f06a049e
Branches
Tags
No related merge requests found
...@@ -3,15 +3,10 @@ image: beagle/sphinx-build-env:latest ...@@ -3,15 +3,10 @@ image: beagle/sphinx-build-env:latest
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
cache:
key: bbdocs
paths:
- public
build: build:
stage: build stage: build
tags: tags:
- docker-arm64 - docker-amd64
parallel: parallel:
matrix: matrix:
- TARGET: [html, pdf] - TARGET: [html, pdf]
...@@ -24,7 +19,7 @@ pages: ...@@ -24,7 +19,7 @@ pages:
- "build: [html]" - "build: [html]"
- "build: [pdf]" - "build: [pdf]"
tags: tags:
- docker-arm64 - docker-amd64
script: script:
- ./gitlab-build.sh publish - ./gitlab-build.sh publish
artifacts: artifacts:
......
...@@ -8,20 +8,6 @@ export VERSION_TWEAK=$(( $(date "+10#%H * 60 + 10#%M") )) ...@@ -8,20 +8,6 @@ export VERSION_TWEAK=$(( $(date "+10#%H * 60 + 10#%M") ))
function do_build() { function do_build() {
echo "**** Updating $PAGES_URL/$VER_DIR: $1 ****" echo "**** Updating $PAGES_URL/$VER_DIR: $1 ****"
if [ "x$1" != "xpublish" ]; then
echo "**** make clean ****"
# Clean build directory
make clean BUILDDIR=public/$VER_DIR
fi
echo "**** make librobotcontrol xml ****"
if [ -e projects/librobotcontrol/docs ] ; then
cd projects/librobotcontrol/docs
doxygen
cd ../../..
fi
if [ "x$1" == "xhtml" ]; then
cat << EOF > PAGES cat << EOF > PAGES
PAGES_URL = $PAGES_URL PAGES_URL = $PAGES_URL
PAGES_SLUG = $PAGES_SLUG PAGES_SLUG = $PAGES_SLUG
...@@ -39,6 +25,14 @@ VERSION_TWEAK = $VERSION_TWEAK ...@@ -39,6 +25,14 @@ VERSION_TWEAK = $VERSION_TWEAK
EXTRAVERSION = $EXTRAVERSION EXTRAVERSION = $EXTRAVERSION
EOF EOF
echo "**** make librobotcontrol xml ****"
if [ -e projects/librobotcontrol/docs ] ; then
cd projects/librobotcontrol/docs
doxygen
cd ../../..
fi
if [ "x$1" == "xhtml" ]; then
mkdir -p public mkdir -p public
cat <<HERE > public/index.html cat <<HERE > public/index.html
<!DOCTYPE html> <!DOCTYPE html>
...@@ -55,7 +49,6 @@ HERE ...@@ -55,7 +49,6 @@ HERE
echo "**** make html ****" echo "**** make html ****"
# Build and serve HTML # Build and serve HTML
make html -j$(nproc) BUILDDIR=public/$VER_DIR make html -j$(nproc) BUILDDIR=public/$VER_DIR
mv public/$VER_DIR/html/* public/$VER_DIR/
fi fi
if [ "x$1" == "xpdf" ]; then if [ "x$1" == "xpdf" ]; then
...@@ -67,8 +60,6 @@ HERE ...@@ -67,8 +60,6 @@ HERE
pdfcpu version pdfcpu version
pdfcpu optimize public/$VER_DIR/latex/beagleboard-docs.pdf pdfcpu optimize public/$VER_DIR/latex/beagleboard-docs.pdf
mv public/$VER_DIR/latex/beagleboard-docs.pdf public/$VER_DIR/
echo "**** cleanup ****" echo "**** cleanup ****"
# Cleanup # Cleanup
rm -rf public/$VER_DIR/doctrees rm -rf public/$VER_DIR/doctrees
...@@ -76,6 +67,10 @@ HERE ...@@ -76,6 +67,10 @@ HERE
fi fi
if [ "x$1" == "xpublish" ]; then if [ "x$1" == "xpublish" ]; then
# Move files
mv public/$VER_DIR/html/* public/$VER_DIR/
mv public/$VER_DIR/latex/beagleboard-docs.pdf public/$VER_DIR/
# Update docs.beagleboard.org # Update docs.beagleboard.org
if [ "$CI_COMMIT_TAG" != "" ]; then if [ "$CI_COMMIT_TAG" != "" ]; then
if [ "$VER_DIR" = "latest" ]; then if [ "$VER_DIR" = "latest" ]; then
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment