.gitlab-ci.yml 1.98 KB
Newer Older
1 2
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'

3 4
stages:
- test
5
- deploy
6

7 8 9 10
variables:
    # Replace with your preferred file name of the resulting Flatpak bundle
    BUNDLE: "org.gnome.Totem.Devel.flatpak"
    GIT_SUBMODULE_STRATEGY: normal
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
    FEDORA_DEPS:
      redhat-rpm-config
      meson
      git
      cairo-devel
      desktop-file-utils
      clutter-devel
      clutter-gst3-devel
      clutter-gtk-devel
      gcc-c++
      gettext
      gnome-desktop3-devel
      grilo-devel
      gsettings-desktop-schemas-devel
      gstreamer1-devel
      gstreamer1-plugins-base-devel
      gstreamer1-plugins-good
      gtk3-devel
      gtk-doc
      itstool
      libappstream-glib
      liberation-sans-fonts
      libpeas-devel
      pygobject3-devel
      python3-typed_ast
      pylint
      python3-devel
      totem-pl-parser-devel
      flatpak-builder
      xorg-x11-server-Xvfb
41
      totem-pl-parser-devel
42

Bastien Nocera's avatar
Bastien Nocera committed
43 44
build-fedora:
  image: fedora:latest
45
  stage: test
Bastien Nocera's avatar
Bastien Nocera committed
46
  before_script:
47
    - dnf install -y $FEDORA_DEPS
Bastien Nocera's avatar
Bastien Nocera committed
48
  script:
Bastien Nocera's avatar
Bastien Nocera committed
49
    - meson _build
Bastien Nocera's avatar
Bastien Nocera committed
50
    - G_MESSAGES_DEBUG=all xvfb-run -a -s "-screen 0 1024x768x24" ninja -C _build test
Bastien Nocera's avatar
Bastien Nocera committed
51
    - ninja -C _build install
52

53 54
flatpak:master:
    extends: .flatpak
55 56 57 58
    image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
    stage: test
    variables:
        # Replace with your manifest path
59
        MANIFEST_PATH: "flatpak/org.gnome.Totem.Devel.json"
60
        RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
61 62 63 64
        # Replace with your application name, as written in the manifest
        FLATPAK_MODULE: "totem"
        # Make sure to keep this in sync with the Flatpak manifest, all arguments
        # are passed except the config-args because we build it ourselves
65
        MESON_ARGS: "-Denable-easy-codec-installation=no -Dprofile=development"
66
        APP_ID: "org.gnome.Totem.Devel"
67

68
nightly:
69 70
  needs: ['flatpak:master']
  dependencies: ['flatpak:master']
71
  extends: '.publish_nightly'