Commit 6d35f4e9 authored by Andreas Henriksson's avatar Andreas Henriksson

CI: Use official salsa-ci-team pipelines

https://salsa.debian.org/salsa-ci-team/pipeline/blob/master/README.md

Gbp-Dch: ignore
parent d5cc084f
variables:
DEBFULLNAME: "Salsa Pipeline"
DEBEMAIL: "<salsa-pipeline@debian.org>"
DEBIAN_FRONTEND: noninteractive
WORKING_DIR: ./debian/output
include: https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
stages:
- build
- test
build:
extends: .build-unstable
image: debian:unstable
reprotest:
extends: .test-reprotest
build package:
stage: build
artifacts:
expire_in: 10 day
name: "$CI_BUILD_NAME"
paths:
- ${WORKING_DIR}/
script:
- apt-get update
- apt-get install eatmydata -y
- eatmydata apt-get build-dep -y .
- eatmydata apt-get install git-buildpackage -y
- gbp pull --ignore-branch
- if ! git rev-parse --verify 'pristine-tar' > /dev/null 2>&1 ; then
git rev-parse --verify 'origin/pristine-tar' > /dev/null 2>&1 &&
git fetch origin pristine-tar:pristine-tar ;
fi
- gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR} -us -uc
lintian:
extends: .test-lintian
run autopkgtest:
stage: test
script:
- apt-get update && apt-get install autopkgtest eatmydata -y --no-install-recommends
- 'if [ -d ./debian/tests ] ; then
eatmydata autopkgtest ${WORKING_DIR}/*.deb -- null ;
else
echo "WARNING: No autopkgtest directory found, test run skipped!" ;
fi'
autopkgtest:
extends: .test-autopkgtest
run lintian:
stage: test
script:
- apt-get update && apt-get install lintian -y --no-install-recommends
- lintian -iI ${WORKING_DIR}/*.changes
# There are no privileged runners in salsa yet, so job will be marked as
# "stuck" if we enable this.... Enable once there are privileged runners.
#run piuparts:
# stage: test
# script:
# - apt-get update && apt-get install piuparts eatmydata -y
# - piuparts -d sid -m http://deb.debian.org/debian/ ${WORKING_DIR}/*.changes
# tags:
# - privileged
piuparts:
extends: .test-piuparts
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