Commit fbcc3bd7 authored by Salvatore Bonaccorso's avatar Salvatore Bonaccorso

Update .gitlab-ci.yml based on Salsa CI Team's template

parent 47c79f84
Pipeline #23181 failed with stages
in 5 minutes and 15 seconds
image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest
variables:
DEBFULLNAME: "Salsa Pipeline"
DEBEMAIL: "<salsa-pipeline@debian.org>"
DEBIAN_FRONTEND: noninteractive
WORKING_DIR: ./debian/output
build:
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 -y install eatmydata
- eatmydata apt-get -y build-dep .
- eatmydata apt-get -y install git-buildpackage
- gbp pull --ignore-branch --pristine-tar --track-missing
- gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR} -us -uc
run autopkgtest:
stage: test
script:
- apt-get update
- apt-get -y --no-install-recommends install autopkgtest eatmydata
- eatmydata autopkgtest -U ${WORKING_DIR}/*.deb -- null || [ $? -eq 8 ]
run lintian:
stage: test
script:
- apt-get update
- apt-get -y --no-install-recommends install lintian
- lintian -iI ${WORKING_DIR}/*.changes
run reprotest:
stage: test
image: registry.salsa.debian.org/salsa-ci-team/images/reprotest
artifacts:
name: "$CI_BUILD_NAME"
expire_in: 180 day
paths:
- "*.deb"
expire_in: 1 day
- ./reprotest.log
when: always
script:
- gitlab-ci-git-buildpackage-all
- apt-get update
- eatmydata apt-get -y build-dep .
- export DEB_BUILD_OPTIONS=nocheck
- eatmydata reprotest --no-diffoscope --min-cpus $(nproc --all) . -- null &> reprotest.log
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