image: registry.gitlab.gnome.org/gnome/gtk-doc/debian:v2 stages: - build - test - deploy # autotools autotools-build: stage: build script: - ./autogen.sh --prefix=/usr - make - make dist except: - tags artifacts: paths: - gtk-doc-*.tar.* autotools-test: stage: test script: - ./autogen.sh --prefix=/usr - make check - make -C tests coverage coverage: '/^TOTAL\s+\d+\s+\d+\s+([\d.]+\%)/' artifacts: when: on_failure name: "gtkdoc-testing-_${CI_COMMIT_REF_NAME}" paths: - "${CI_PROJECT_DIR}/tests/test-suite.log" # meson meson-build: stage: build script: - find . -name .git -prune -o -print | LC_ALL=C sort -u > git-filelist.txt - meson --prefix /usr _build . - ninja -C _build - meson test -C _build except: - tags artifacts: when: always paths: - _build/meson-logs/* - git-filelist.txt meson-from-tarball: stage: test dependencies: - autotools-build variables: GIT_STRATEGY: none script: - tar -xvf gtk-doc-*.tar.* - ( cd gtk-doc-*/; find . -name .git -prune -o -print ) | LC_ALL=C sort -u > tar-filelist.txt - ( cd gtk-doc-*/; meson --prefix /usr ../_build . ) - ninja -C _build - meson test -C _build artifacts: when: on_failure paths: - _build/meson-logs/*.log - tar-filelist.txt # common pages: stage: deploy only: - master script: - ./autogen.sh --prefix=/usr - make - make -C tests coverage - mkdir -p public/ - mv tests/htmlcov public/ artifacts: paths: - public