Debian Codegraph @

subprojects/libglnx/.gitlab-ci.yml

raw symbols SCIP
1 # Copyright 2019 Endless OS Foundation LLC
2 # SPDX-License-Identifier: LGPL-2.0-or-later
3
4 image: registry.fedoraproject.org/fedora:30
5
6 stages:
7 - build
8
9 before_script:
10 - dnf install -y gcc git meson ninja-build "pkgconfig(gio-2.0)" "pkgconfig(gio-unix-2.0)" "pkgconfig(glib-2.0)" xz
11
12 build:
13 stage: build
14 script:
15 - meson _build .
16 - ninja -C _build
17 - meson test -C _build
18 # Run it again! This previously did not work.
19 - meson test -C _build
20 # Ensure that we can build as a subproject
21 - rm -fr _build/meson-dist
22 - meson dist -C _build
23 - mkdir -p tests/use-as-subproject/subprojects/libglnx
24 - tar --strip-components=1 -C tests/use-as-subproject/subprojects/libglnx -xf _build/meson-dist/*.tar.xz
25 - meson tests/use-as-subproject/_build tests/use-as-subproject
26 - ninja -C tests/use-as-subproject/_build
27 - meson test -C tests/use-as-subproject/_build
28 artifacts:
29 when: on_failure
30 name: "libglnx-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
31 paths:
32 - "${CI_PROJECT_DIR}/_build/meson-logs"
33
34 reuse:
35 stage: build
36 image:
37 name: fsfe/reuse:latest
38 entrypoint: [""]
39 before_script: []
40 script:
41 - reuse lint