Commit f43bba83 authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Added CI jobs for source archiving and doc deployment.

parent 06418a15
# Files to ignore for export
.gitlab-ci.yml export-ignore
.gitlab-ci/ export-ignore
.gitignore export-ignore
.gitattributes export-ignore
.gitmodules export-ignore
.dockerignore export-ignore
/docs/tutorial export-ignore
/library/Demos/MultiRegions/ExtraDemos/ export-ignore
/solvers/ImageWarpingSolver/ export-ignore
......
......@@ -210,6 +210,102 @@
- rsync -a --delete $TMP_LOC/ $RPM_LOC/
##
## Source packages
##
package-source-archive-env:
<<: *package-env-build
package-source-archive-build:
<<: *package-conditions
stage: package-build
needs: ["package-source-archive-env"]
tags:
- pkg
variables:
GIT_SUBMODULE_STRATEGY: normal
script:
- VERSION=$(cat VERSION)
- mkdir -p src
- git archive --format=tar --output=src/nektar++-${VERSION}.tar HEAD
- cd src
- gzip --stdout nektar++-${VERSION}.tar > nektar++-${VERSION}.tar.gz
- bzip2 --stdout nektar++-${VERSION}.tar > nektar++-${VERSION.tar.bz2
- xz --stdout nektar++-${VERSION}.tar > nektar++-${VERSION.tar.xz
artifacts:
paths:
- src/nektar++*.tar*
expire_in: 1 week
package-source-archive-deploy:
<<: *package-conditions
stage: package-deploy
needs: ["package-source-archive-build"]
tags:
- pkg
- pkg-src
dependencies:
- package-source-archive-build
script:
- cp src/nektar++*.tar* /web/src
##
## Documentation
##
package-source-doc-env:
<<: *package-env-build
package-source-doc-build:
<<: *package-conditions
stage: package-build
needs: ["package-source-doc-env"]
tags:
- pkg
variables:
GIT_SUBMODULE_STRATEGY: normal
script:
- VERSION=$(cat VERSION)
- mkdir build && cd build
- cmake -DNEKTAR_BUILD_DEMOS:BOOL=OFF -DNEKTAR_BUILD_DOC:BOOL=ON -DNEKTAR_BUILD_LIBRARY:BOOL=OFF -DNEKTAR_BUILD_SOLVERS:BOOL=OFF -DNEKTAR_BUILD_UTILITIES:BOOL=OFF ..
- make doc
- make user-guide-pdf user-guide-html
- make developer-guide-pdf developer-guide-html
- make tutorials
artifacts:
paths:
- build/docs/doxygen/html
- build/docs/user-guide/user-guide.pdf
- build/docs/user-guide/html
- build/docs/developer-guide/developer-guide.pdf
- build/docs/developer-guide/html
- build/docs/tutorial/*/*/*.pdf
- build/docs/tutorial/*/*/*.tar.gz
- build/docs/tutorial/*/*/html
package-source-doc-deploy:
<<: *package-conditions
stage: package-deploy
needs: ["package-source-doc-build"]
tags:
- pkg
- pkg-src
dependencies:
- package-source-doc-build
script:
- VERSION=$(cat VERSION)
- cd build/docs
- mkdir -p /web/doc/userguide/${VERSION}
- rsync user-guide/html/ /web/doc/userguide/${VERSION}/
- rsync user-guide/user-guide.pdf /web/src/user-guide-${VERSION}.pdf
- mkdir -p /web/doc/developerguide/${VERSION}
- rsync developer-guide/html/ /web/doc/developerguide/${VERSION}/
- rsync developer-guide/developer-guide.pdf /web/src/developer-guide-${VERSION}.pdf
- mkdir -p /web/doc/tutorials/${VERSION}
- rsync tutorial/ /web/doc/tutorials/${VERSION}/
- mkdir -p /web/doc/doxygen/${VERSION}
- rsync doxygen/html /web/doc/doxygen/${VERSION}
##
## Debian unstable
##
......
# vim: syntax=dockerfile
FROM debian:stable-slim
LABEL maintainer="Nektar++ Development Team <nektar-users@imperial.ac.uk>"
WORKDIR /root
RUN apt-get update && \
apt-get install -y git tar gzip bzip2 xz-utils
RUN groupadd nektar && useradd -m -g nektar nektar
# Force update to always run when building image
ARG INVALIDATE_CACHE
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y
USER nektar:nektar
WORKDIR /home/nektar
# vim: syntax=dockerfile
FROM debian:stable-slim
LABEL maintainer="Nektar++ Development Team <nektar-users@imperial.ac.uk>"
WORKDIR /root
RUN apt-get update && \
apt-get install -y \
cmake rsync \
texlive-base texlive-latex-extra texlive-science \
texlive-fonts-recommended texlive-pstricks \
doxygen graphviz imagemagick dvipng
RUN groupadd nektar && useradd -m -g nektar nektar
# Force update to always run when building image
ARG INVALIDATE_CACHE
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y
USER nektar:nektar
WORKDIR /home/nektar
Markdown is supported
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