Commit 5c697f89 authored by Adrien Plazas's avatar Adrien Plazas
Browse files

Add the Debian packaging CI

parent 3c9e6f46
Pipeline #59105 failed with stages
in 0 seconds
include:
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
stages:
- package
- test-package
variables:
DEPS: build-essential git wget lcov
WANT_BUILD_DEPS: "true"
XVFB_RUN: xvfb-run -a -s -noreset
COMMON_BUILD_OPTS: -Db_coverage=true --werror
.buster_vars: &buster_vars
variables:
CI_REPO: "deb http://ci.puri.sm/ scratch librem5"
DIST: buster
BUILD_OPTS: -Dphoc_tests=disabled -Dgtk_doc=false ${COMMON_BUILD_OPTS}
.bullseye_vars: &bullseye_vars
variables:
CI_REPO: "deb http://ci.puri.sm/ bullseyeci main"
DIST: bullseye
BUILD_OPTS: -Dphoc_tests=enabled -Dgtk_doc=true ${COMMON_BUILD_OPTS}
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install wget ca-certificates gnupg eatmydata
- echo "Using CI repo ${CI_REPO}"
- echo "$CI_REPO" > /etc/apt/sources.list.d/ci.list
- wget -O- https://ci.puri.sm/ci-repo.key | apt-key add -
- echo "deb http://debug.mirrors.debian.org/debian-debug/ ${DIST}-debug main" > /etc/apt/sources.list.d/debug.list
- eatmydata apt-get -y update
- '[ "$WANT_BUILD_DEPS" != "true" ] || eatmydata apt-get -y build-dep .'
- eatmydata apt-get -y install $DEPS
- ulimit -c unlimited
.tags: &tags
tags:
- librem5
package:deb-debian-buster:
extends: .l5-build-debian-package
package:deb-debian-buster:arm64:
tags:
- librem5:arm64
extends: .l5-build-debian-package
package:deb-pureos-amber:
variables:
L5_DOCKER_IMAGE: pureos/amber
L5_ADD_SCRATCH_CI: 'false'
before_script:
- export DEBIAN_FRONTEND=noninteractive
- echo "man-db man-db/auto-update boolean false" | debconf-set-selections
- echo "deb https://repo.pureos.net/pureos amber-phone-staging main" > /etc/apt/sources.list.d/staging.list
- echo "deb https://repo.pureos.net/pureos amber-proposed-updates main" >> /etc/apt/sources.list.d/staging.list
- apt-get -y update
- apt-get -y build-dep .
- apt-get -y install build-essential git devscripts
- git submodule update --recursive
extends: .l5-build-debian-package
allow_failure: true
autopkgtest-debian-buster-package:
dependencies:
- package:deb-debian-buster
extends: .l5-autopkgtest-debian-package
lintian-debian-buster-package:
dependencies:
- package:deb-debian-buster
extends: .l5-lintian-debian-package
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment