You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
815 B

# Tests after the app is built.
include: '.gitlab-ci/docs.yml'
# Validate the metainfo with Flathub's tool.
lint-metainfo:
stage: test
image:
name: "ghcr.io/flathub/flatpak-builder-lint:latest"
entrypoint: [""]
variables:
METAINFO: ".flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/data/${APP_ID}.metainfo.xml"
script:
# This tool has extra tests on top of appstreamcli and is required to pass for Flathub.
- flatpak-builder-lint appstream ${METAINFO}
# Test also with the pedantic and strict flags.
- appstreamcli validate --pedantic --explain --strict ${METAINFO}
needs: ["build@x86_64"]
# Test that there are no errors in the docs.
build-docs:
extends:
- .docs
stage: test
variables:
DOCS_FOLDER: "doc"
rules:
- if: $CI_COMMIT_BRANCH != "main"