include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml' cache: paths: - _ccache/ variables: BUNDLE: 'epiphany-git.flatpak' MANIFEST_PATH: 'org.gnome.Epiphany.json' RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo' FLATPAK_MODULE: 'epiphany' APP_ID: 'org.gnome.Epiphany.Devel' stages: - test check-code-style: stage: .pre image: alpine:latest interruptible: true before_script: - apk update && apk add uncrustify bash python3 script: - bash data/check-code-style flatpak: extends: '.flatpak' variables: CONFIG_OPTS: '-Dprofile=Devel -Dunit_tests=enabled --werror' except: - master flatpak master: extends: '.flatpak' variables: CONFIG_OPTS: '-Dtech_preview=true -Dprofile=Devel' only: - master flatpak scanbuild: extends: '.flatpak' variables: CONFIG_OPTS: '-Dprofile=Devel -Dunit_tests=enabled --werror' script: - flatpak-builder --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} flatpak_app ${MANIFEST_PATH} - flatpak build flatpak_app meson --prefix=/app ${CONFIG_OPTS} _build - flatpak build flatpak_app ninja -C _build scan-build - bash -c 'if [[ -n "$(ls -A _build/meson-logs/scanbuild/)" ]]; then echo "Scan build log found, assuming defects exist"; exit 1; fi' artifacts: when: on_failure paths: - _build/meson-logs/scanbuild nightly: extends: '.publish_nightly' stage: .post dependencies: ['flatpak master']