File: .gitlab-ci.yml

package info (click to toggle)
libadwaita-1 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 12,252 kB
  • sloc: ansic: 86,011; xml: 189; python: 60; sh: 30; makefile: 23; javascript: 9
file content (102 lines) | stat: -rw-r--r-- 2,537 bytes parent folder | download | duplicates (2)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
include:
  - project: 'gnome/citemplates'
    file: 'flatpak/flatpak_ci_initiative.yml'
  - component: gitlab.gnome.org/GNOME/citemplates/release-service@master
    inputs:
      job-stage: deploy
      dist-job-name: "build-flatpak"
  - component: gitlab.gnome.org/GNOME/citemplates/gnomeos-build-sysext@master
  - component: "gitlab.gnome.org/GNOME/citemplates/gnomeos-basic-ci@master"
    inputs:
      meson-options: "-Ddocumentation=true"
      lsan-options: "suppressions=${CI_PROJECT_DIR}/tests/lsan.supp"

variables:
  APP_ID: 'org.gnome.Adwaita1.Demo'
  BUNDLE: 'org.gnome.Adwaita1.Demo.flatpak'
  RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo'
  MANIFEST_PATH: 'demo/org.gnome.Adwaita1.Demo.json'
  FLATPAK_MODULE: 'libadwaita'
  FLATPAK_BUILD_DIR: build
  # Instead of -nightly, -48 can be used for stable
  GNOMEOS_IMAGE_VERSION: "49"
  GNOMEOS_IMAGE: "quay.io/gnome_infrastructure/gnome-build-meta:core-$GNOMEOS_IMAGE_VERSION"

stages:
  - build
  - deploy

api-visibility:
  stage: build
  before_script: []
  needs: []
  script:
    - ./.gitlab-ci/api-visibility.sh

doc:
  image: "$GNOMEOS_IMAGE"
  stage: build
  needs: []
  tags:
    - flatpak
  variables:
    MESON_ARGS: >-
      -Ddocumentation=true
      -Dtests=false
      -Dvapi=false
  script:
    - meson setup --fatal-meson-warnings --prefix=/app ${MESON_ARGS} _build
    - ninja -C _build
    - meson test -C _build --suite libadwaita:doc
    - mv _build/doc/libadwaita-1 _doc/
  artifacts:
    expose_as: 'Browse documentation'
    paths:
      - _doc/index.html
      - _doc

build-flatpak:
  extends: '.flatpak@x86_64'
  stage: build
  before_script: []
  needs: []

build-flatpak-aarch64:
  extends: '.flatpak@aarch64'
  stage: build
  before_script: []
  needs: []

abi-check:
  image: "$GNOMEOS_IMAGE"
  stage: build
  needs: []
  variables:
    LAST_ABI_BREAK: "8896cb224e7bd737b7f99bba5a10b56e89f034c4"
  script:
    - ./.gitlab-ci/check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD)

potfiles:
  image: fedora
  stage: build
  script:
    - .gitlab-ci/check-potfiles.sh

refresh-doc:
  image: fedora
  stage: deploy
  needs: ['doc']
  only:
    refs:
    - 'main'
  script:
    - export DOCS_TRIGGER_TOKEN=$( cat "${DOCS_TRIGGER_TOKEN_FILE}" )
    - "curl -X POST -F token=${DOCS_TRIGGER_TOKEN} -F ref=docs-gtk-org https://gitlab.gnome.org/api/v4/projects/14079/trigger/pipeline"

nightly:
  extends: '.publish_nightly'
  needs: ['build-flatpak']

nightly-aarch64:
  extends: '.publish_nightly'
  needs: ['build-flatpak-aarch64']