blob: 34eaecc00977cb1b50f7185d92e550f50d2b25d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
stages:
#- test
- package
- test_package
.job_template: &job_definition
stage: package
image: "0xacab.org:4567/leap/gitlab-buildpackage:build_${DIST}_${ARCH}"
script:
- pwd
- git describe
- build-build-package
# Upload packages from the main/default branch to dev-platform deb repo and packaes from all other branches/MRs to the experimental-platform one.
- "[ ${CI_BUILD_REF_NAME} != 'master' ] && export REPOSITORY='/srv/experimental-gitbuildpackage'"
- upload-package
# sleep 1h to allow debugging of running container
#- sleep 3600
artifacts:
expire_in: 1w
paths:
- '*_*.xz'
- '*_*.dsc'
- '*_amd64.changes'
- '*.deb'
- 'results/*'
#test:
# image: leapcode/soledad:latest
# stage: test
# script:
# - tox --recreate
package:amd64:jessie:
variables:
#CI_DEBUG_TRACE: "true"
REPOREMOTE: "gitlab-runner@deb.leap.se"
REPOURL: "deb.leap.se/gitbuildpackage"
REPOREMOTE_OPTS: "-p 4422 -o StrictHostKeyChecking=no -i /etc/dockerbuild.id_rsa -o SendEnv=REPOSITORY"
REPOSITORY: "/srv/gitbuildpackage"
ARCH: "amd64"
DIST: "jessie"
REPOS: "jessie"
PRE_COMMIT_CMD: "freeze_python_version.sh"
<<: *job_definition
lintian:
variables:
ARCH: "amd64"
DIST: "jessie"
image: "0xacab.org:4567/leap/gitlab-buildpackage:build_${DIST}_${ARCH}"
stage: test_package
script: bash -x build-test-lintian --fail-on-warnings
|