Commit 9b54acb8 authored by Bastien Nocera's avatar Bastien Nocera

Add CI to generate website

parent 28d6e4ca
image: fedora:rawhide
variables:
DEPENDENCIES: git discount dnf-plugins-core cpio
DEPENDENCIES_FPRINTD: dbus-glib-devel pam-devel polkit-devel
gtk-doc meson intltool autoconf automake libtool
gcc gcc-c++ glibc-devel make
# Sync'ed up with https://gitlab.freedesktop.org/libfprint/libfprint/blob/master/.gitlab-ci.yml
DEPENDENCIES_LIBFPRINT: libusb1-devel glib2-devel nss-devel pixman-devel systemd
meson gtk-doc gcc gcc-c++ glibc-devel libX11-devel
libXv-devel
pages:
stage: deploy
before_script:
- dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES $DEPENDENCIES_LIBFPRINT $DEPENDENCIES_FPRINTD
script:
- mkdir .public
- cp *.md simple.css .public/
- cd .public/
- for i in *.md ; do discount-mkd2html -css simple.css $i ; done
- rm -f *.md
- cd ..
- mv .public/ public/
# Stable libfprint docs, copied from package, we can't copy from the
# installed package, as the CI setup doesn't install docs
- dnf download libfprint-devel.x86_64
- rpm2cpio ./libfprint-devel-*.rpm | cpio -id
- mv ./usr/share/doc/libfprint-devel/html/ public/libfprint-stable/
- rm -rf ./libfprint-devel-*.rpm ./usr/
# Unstable libfprint docs
- git clone https://gitlab.freedesktop.org/libfprint/libfprint.git
- cd libfprint
- meson . _build -Dprefix=/usr
- ninja -C _build
- ninja -C _build install
- cd ..
- mv /usr/share/gtk-doc/html/libfprint/ public/libfprint-dev/
# fprintd docs
- git clone https://gitlab.freedesktop.org/libfprint/fprintd.git
- cd fprintd
- ./autogen.sh --disable-dependency-tracking --prefix=/usr/ --enable-gtk-doc
- make
- make install
- cd ..
- mv /usr/share/gtk-doc/html/fprintd public/fprintd-dev/
artifacts:
paths:
- public
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