summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 0914ed7072182951bc75e2e6f2167b64b82ca745 (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
image: registry.gitlab.gnome.org/gnome/gnome-initial-setup/fedora:v1

stages:
  - build

.job_template: &job_definition
  stage: build
  script:
    # In general, we would like warnings to be fatal. However, code copied from
    # gnome-control-center uses many deprecated functions. Until we have a good
    # answer to sharing that code (#68), make those warnings non-fatal.
    - meson -Dsystemd=${EXPLICIT_FEATURES}
      --auto-features ${AUTO_FEATURES}
      ${OPTIONS}
      -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations
      ${EXTRA_PARAMETERS}
      _build .
    - cd _build
    - ninja -v
    # Check that strings can be extracted
    - ninja -v gnome-initial-setup-pot
    - meson test
  artifacts:
    when: on_failure
    name: "gnome-initial-setup-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
    paths:
      - "${CI_PROJECT_DIR}/_build/meson-logs"

build-minimal:
  <<: *job_definition
  variables:
    EXPLICIT_FEATURES: 'false'
    AUTO_FEATURES: 'disabled'
    OPTIONS: ''

build-maximal:
  <<: *job_definition
  variables:
    EXPLICIT_FEATURES: 'true'
    AUTO_FEATURES: 'enabled'
    OPTIONS: '-Dvendor-conf-file=/var/lib/weird-vendor-specific-path.ini'