Commit 1c68b155 authored by Iñaki Malerba's avatar Iñaki Malerba

Use RELEASE variable to indicate the jobs which release to use.

This helps keeping it DRY
parent 893c611f
include: salsa-ci.yml
variables:
RELEASE: 'stretch-backports'
stages:
- clone
- build
......@@ -21,7 +24,7 @@ before_script:
- cd repo_test
build:
extends: .build-unstable
extends: .build-package
reprotest:
extends: .test-reprotest
......
......@@ -3,6 +3,7 @@
DEBEMAIL: "<salsa-pipeline@debian.org>"
DEBIAN_FRONTEND: noninteractive
WORKING_DIR: $CI_PROJECT_DIR/debian/output
RELEASE: 'unstable'
stages:
- build
......@@ -33,33 +34,11 @@ stages:
- gbp pull --ignore-branch --pristine-tar --track-missing
- gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR} --git-builder="docker-build.sh registry.salsa.debian.org/salsa-ci-team/images/dockerbuilder:${RELEASE}"
.build-jessie: &build-jessie
.build-package: &build-package
<<: *build-definition
<<: *artifacts-default-expire
variables:
<<: *global_variables
RELEASE: 'jessie'
.build-stretch: &build-stretch
<<: *build-definition
<<: *artifacts-default-expire
variables:
<<: *global_variables
RELEASE: 'stretch'
.build-stretch-bpo: &build-stretch-bpo
<<: *build-definition
<<: *artifacts-default-expire
variables:
<<: *global_variables
RELEASE: 'stretch-backports'
.build-unstable: &build-unstable
<<: *build-definition
<<: *artifacts-default-expire
variables:
<<: *global_variables
RELEASE: 'unstable'
.test-autopkgtest: &test-autopkgtest
stage: test
......@@ -81,7 +60,7 @@ stages:
.test-lintian: &test-lintian
stage: test
image: registry.salsa.debian.org/salsa-ci-team/images/lintian
image: registry.salsa.debian.org/salsa-ci-team/images/lintian:${RELEASE}
script:
- lintian ${WORKING_DIR}/*.changes | tee lintian.output
- cat lintian.output | /root/go/bin/lintian2junit > ${WORKING_DIR}/lintian.xml
......@@ -92,22 +71,6 @@ stages:
reports:
junit: ${WORKING_DIR}/lintian.xml
.test-lintian-jessie: &test-lintian-jessie
<<: *test-lintian
image: registry.salsa.debian.org/salsa-ci-team/images/lintian:jessie
.test-lintian-stretch: &test-lintian-stretch
<<: *test-lintian
image: registry.salsa.debian.org/salsa-ci-team/images/lintian:stretch
.test-lintian-stretch-backports: &test-lintian-stretch-backports
<<: *test-lintian
image: registry.salsa.debian.org/salsa-ci-team/images/lintian:stretch-backports
.test-lintian-unstable: &test-lintian-unstable
<<: *test-lintian
image: registry.salsa.debian.org/salsa-ci-team/images/lintian:unstable
.test-reprotest: &test-reprotest
stage: test
image: registry.salsa.debian.org/salsa-ci-team/images/reprotest
......
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