.gitlab-ci.yml 1.87 KB
Newer Older
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
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