Forum | Documentation | Website | Blog

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

CI: WIP add rsync and test

parent b6cbf055
No related merge requests found
...@@ -8,3 +8,4 @@ RUN apk add librsvg ...@@ -8,3 +8,4 @@ RUN apk add librsvg
RUN pip install sphinx_rtd_theme RUN pip install sphinx_rtd_theme
RUN apk add texlive-full RUN apk add texlive-full
RUN apk add make RUN apk add make
RUN apk add rsync
...@@ -30,6 +30,12 @@ cat <<HERE > public/index.html ...@@ -30,6 +30,12 @@ cat <<HERE > public/index.html
</html> </html>
HERE HERE
# Brought back for more testing...
cp public/index.html /var/www/docs
sudo apk add rsync
rsync -a --delete public/latest/. /var/www/docs/latest
# End testing.
elif [ "$CI_COMMIT_BRANCH" != "" ]; then elif [ "$CI_COMMIT_BRANCH" != "" ]; then
sphinx-build -b html . public/$CI_COMMIT_BRANCH/ sphinx-build -b html . public/$CI_COMMIT_BRANCH/
...@@ -70,6 +76,7 @@ sphinx-build -M latexpdf . public/$GIT_BRANCH/ ...@@ -70,6 +76,7 @@ sphinx-build -M latexpdf . public/$GIT_BRANCH/
cp public/$GIT_BRANCH/latex/beagleboard-docs.pdf public/$GIT_BRANCH/beagleboard-docs-$CI_COMMIT_TAG.pdf cp public/$GIT_BRANCH/latex/beagleboard-docs.pdf public/$GIT_BRANCH/beagleboard-docs-$CI_COMMIT_TAG.pdf
cp public/$GIT_BRANCH/latex/beagleboard-docs.pdf public/$GIT_BRANCH/beagleboard-docs.pdf cp public/$GIT_BRANCH/latex/beagleboard-docs.pdf public/$GIT_BRANCH/beagleboard-docs.pdf
rm -rf public/$GIT_BRANCH/latex rm -rf public/$GIT_BRANCH/latex
sudo apk add rsync
rsync -a --delete public/$GIT_BRANCH/. /var/www/docs/$GIT_BRANCH rsync -a --delete public/$GIT_BRANCH/. /var/www/docs/$GIT_BRANCH
fi fi
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