1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-12 15:47:35 +00:00
Purism-Calls/.gitlab-ci.yml
Guido Günther acbbe4697f gitlab-ci: Use byzantium instead of Debian bullseye
We didn't have bullseye images back then.
2021-01-20 10:53:17 +01:00

120 lines
2.4 KiB
YAML

include:
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
stages:
- build
- test
- package
- test-package
variables:
DEPS: build-essential git
WANT_BUILD_DEPS: "true"
IMAGE: pureos/byzantium
COMMON_BUILD_OPTS: --werror
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install $DEPS wget ca-certificates gnupg
- echo "deb http://ci.puri.sm/ bullseyeci main" > /etc/apt/sources.list.d/ci.list
- wget -O- https://ci.puri.sm/ci-repo.key | apt-key add -
- apt-get -y update
- apt-get -y build-dep .
- ulimit -c unlimited
.tags: &tags
tags:
- librem5
.build_step: &build_step
script:
- 'echo "Build opts: ${BUILD_OPTS}"'
- meson ${BUILD_OPTS} . _build
- ninja -C _build
build:native:
<<: *tags
image: $IMAGE
stage: build
artifacts:
paths:
- _build
variables:
BUILD_OPTS: -Dgtk_doc=true ${COMMON_BUILD_OPTS}
<<: *build_step
except:
variables:
- $PKG_ONLY == "1"
test:native:
<<: *tags
image: $IMAGE
stage: test
dependencies:
- build:native
script:
- export LC_ALL=C.UTF-8
- xvfb-run ninja -C _build test
except:
variables:
- $PKG_ONLY == "1"
build-gtkdoc:
<<: *tags
image: $IMAGE
stage: test
dependencies:
- build:native
<<: *build_step
script:
- ninja -C _build calls-doc
- mv _build/doc/html/ _reference/
artifacts:
paths:
- _reference
except:
variables:
- $PKG_ONLY == "1"
check-po:
<<: *tags
image: $IMAGE
stage: test
dependencies:
- build:native
before_script:
- apt-get -y update
- apt-get -y install intltool
script:
# barf on untranslated C files. Seems intltool
# can't be told to exit with non-zero exit status
# in this case
- cd po/
- intltool-update -m 2>&1 | grep -qs '/.*\.c' && { intltool-update -m; exit 1; } || exit 0
except:
variables:
- $PKG_ONLY == "1"
package:deb-debian-buster:
extends: .l5-build-debian-package
before_script: []
package:deb-debian-buster:arm64:
tags:
- librem5:arm64
extends: .l5-build-debian-package
before_script: []
autopkgtest-debian-buster-package:
dependencies:
- package:deb-debian-buster
extends: .l5-autopkgtest-debian-package
before_script: []
lintian-debian-buster-package:
dependencies:
- package:deb-debian-buster
extends: .l5-lintian-debian-package
before_script: []