File: .gitlab-ci.yml

package info (click to toggle)
dgit 12.16
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 3,368 kB
  • sloc: perl: 13,443; sh: 6,466; python: 334; makefile: 324; tcl: 69
file content (84 lines) | stat: -rw-r--r-- 2,285 bytes parent folder | download | duplicates (3)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# We're following this recipe
#   Advanced Use
#   https://salsa.debian.org/salsa-ci-team/pipeline#advanced-use

include:
  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml


variables:
# See:
#   https://salsa.debian.org/salsa-ci-team/pipeline#skipping-a-job
#   Skipping a job
  # Very slow and resource-intensive
  SALSA_CI_DISABLE_AUTOPKGTEST: 1
  # We build no arch-specific packages; thse are just wasted faff
  SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 1
  SALSA_CI_DISABLE_CROSSBUILD_ARM64: 1
  # Doesn't work with unfinalised changelogs
  SALSA_CI_DISABLE_REPROTEST: 1
  SALSA_CI_LINTIAN_SUPPRESS_TAGS: changelog-empty-entry
  # t2usm project
  T2USM_EXECUTABLE_URL: https://salsa.debian.org/dgit-team/tag2upload-service-manager/-/jobs/artifacts/main/raw/artifacts/tag2upload-service-manager?job=build

.dgit-test-suite:
  stage: test
  image: debian:testing
  dependencies:
    - build
  after_script:
    - tests/maybe-tail-log-of-one-failing-test
  artifacts:
    name: logs
    when: always
    expire_in: 1 week
    paths:
      - tests/tmp/*

dgit-test-suite:
  extends: .dgit-test-suite
  script:
    - apt-get -y update
    - tests/gitlab-ci-run-all

dgit-test-suite-trixie:
  extends: dgit-test-suite
  image: debian:trixie
  variables:
    DGIT_TEST_CURRENT_SUITE: trixie

dgit-test-suite-bookworm:
  extends: dgit-test-suite
  image: debian:bookworm
  variables:
    DGIT_TEST_CURRENT_SUITE: bookworm

dgit-test-suite-bullseye:
  extends: dgit-test-suite
  image: debian:bullseye
  variables:
    DGIT_TEST_CURRENT_SUITE: bullseye

dgit-test-suite-buster:
  extends: dgit-test-suite
  image: debian:buster
  variables:
    DGIT_TEST_CURRENT_SUITE: buster

t2u-integration:
  extends: .dgit-test-suite
  stage: test
  script:
    - apt-get -y update
    - apt-get -y install curl
    - curl -L "$T2USM_EXECUTABLE_URL" >tag2upload-service-manager
    - chmod +x tag2upload-service-manager
    - export DGIT_TEST_T2USM_PROGRAM=$(pwd)/tag2upload-service-manager
    - export TESTSCRIPTS=$(tests/list-t2u-integration-tests)
    - tests/gitlab-ci-run-all

t2u-integration-bookworm:
  extends: t2u-integration
  image: debian:bookworm
  # Don't set DGIT_TEST_CURRENT_SUITE just in case that might suppress the
  # very test case(s) we care about.