Skip to content
Commits on Source (2)
variables:
DEBFULLNAME: "Salsa Pipeline"
DEBEMAIL: "<salsa-pipeline@debian.org>"
DEBIAN_FRONTEND: noninteractive
WORKING_DIR: ./debian/output
stages:
- build
- test
image: debian:unstable
build package:
stage: build
artifacts:
expire_in: 180 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
- ! git rev-parse --verify 'pristine-tar' > /dev/null 2>&1 && \
git rev-parse --verify 'origin/pristine-tar' > /dev/null 2>&1 && \
git fetch origin pristine-tar:pristine-tar
- gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR} -us -uc
run autopkgtest:
stage: test
script:
- apt-get update && apt-get install autopkgtest eatmydata -y --no-install-recommends
- eatmydata autopkgtest ${WORKING_DIR}/*.deb -- null
run lintian:
stage: test
script:
- apt-get update && apt-get install lintian -y --no-install-recommends
- lintian -iI ${WORKING_DIR}/*.changes