Commit 227af2b4 authored by Iñaki Malerba's avatar Iñaki Malerba

Simplify the job's definition.

Include YAML with all the jobs inside, to simplify the pipeline definition
parent 6f43aa96
include: salsa-ci.yml
include:
- salsa-ci.yml
- pipeline-jobs.yml
variables:
RELEASE: 'stretch-backports'
......@@ -24,27 +26,6 @@ clone:
before_script:
- cd repo_test
build:
extends: .build-package
reprotest:
extends: .test-reprotest
reprotest-diffoscope:
extends: .test-reprotest-diffoscope
lintian:
extends: .test-lintian
autopkgtest:
extends: .test-autopkgtest
blhc:
extends: .test-blhc
piuparts:
extends: .test-piuparts
# Backwards compat tests
.dry: &dry
......
......@@ -51,6 +51,24 @@ On the previous example, the package is built on Debian unstable and tested on a
You can choose to run only some of the jobs.
Anyway, we **firmly recommend NOT to do it**.
### Including the job implementation
The `salsa-ci.yml` template only delivers the jobs definitions. Including only this file, no job will be added to the pipeline.
On the other hand, `pipeline-jobs.yml` includes all the jobs' _implementation_.
To use this, simply add a `debian/gitlab-ci.yml` like the following:
```yaml
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
variables:
RELEASE: 'unstable'
```
`RELEASE: 'unstable'` can be replaced with any of the releases provided.
### Building
The Debian release can be specified declaring the variable `RELEASE` on any of the images availables.
- unstable
......
include: https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
variables:
RELEASE: 'stretch-backports'
build:
extends: .build-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