summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 15a10c06eb1acd426232e0e33fdcdca63d6afeba (plain)
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
build:snap:
  image: ubuntudesktop/gnome-3-38-2004
  before_script:
    - apt-get update
    - DEBIAN_FRONTEND=noninteractive apt-get install -q -y --no-install-recommends ca-certificates
  script: snapcraft
  artifacts:
    paths: ['./*.snap']
    expire_in: 3 days

build-ubuntu:
  image: ubuntu:rolling
  before_script:
    - apt-get update
    - DEBIAN_FRONTEND=noninteractive apt-get install -q -y --no-install-recommends meson valac gcc gettext itstool libfribidi-dev libgirepository1.0-dev libgtk-3-dev libgusb-dev libcolord-dev libpackagekit-glib2-dev libwebp-dev libsane-dev git ca-certificates
  script:
    - meson _build
    - ninja -C _build install

build-fedora:
  image: fedora:latest
  before_script:
    - dnf install -y meson vala gettext itstool fribidi-devel gtk3-devel gobject-introspection-devel libgusb-devel colord-devel PackageKit-glib-devel libwebp-devel sane-backends-devel git
  script:
    - meson _build
    - ninja -C _build install

build-arch:
  image: archlinux/base:latest
  before_script:
    - pacman -Syu --noconfirm meson vala gettext itstool fribidi gtk3 gobject-introspection libgusb colord libwebp sane git
  script:
    - meson _build
    - ninja -C _build install
  allow_failure: true

include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'

flatpak:
  variables:
    MANIFEST_PATH: "build-aux/flatpak/org.gnome.SimpleScan.json"
    FLATPAK_MODULE: "simple-scan"
    APP_ID: "org.gnome.SimpleScan"
    RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
    BUNDLE: "simple-scan-dev.flatpak"
  extends: '.flatpak'
  # Make CI pass while I figure things out
  allow_failure: true