Debian Codegraph @

.gitlab-ci.yml

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 ---
2 variables:
3 SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 1
4 SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1
5 include:
6 - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
7
8 stages:
9 - upstream
10 - provisioning
11 - build
12 - publish
13 - test
14
15 .test: &test
16 stage: upstream
17 image: $CI_JOB_NAME
18 coverage: '/^Total.* (\d+.\d+)$/'
19 before_script:
20 - if [ ! -z "$NEEDS_ARCHIVE" ]; then sed -i -e 's/deb.debian.org/archive.debian.org/;/security.debian.org/d' /etc/apt/sources.list; fi
21 - cpanm --notest ExtUtils::Depends Devel::Cover TAP::Harness::JUnit Devel::Cover::Report::Cobertura
22 - apt-get update && apt-get -y --no-install-recommends install ffmpeg
23 - cpanm --notest --installdeps .
24 - perl Makefile.PL
25 script:
26 - cover -delete
27 - HARNESS_PERL_SWITCHES='-MDevel::Cover' prove -v -l -s --harness TAP::Harness::JUnit
28 - cover
29 - cover -report cobertura
30 artifacts:
31 paths:
32 - cover_db
33 reports:
34 junit: junit_output.xml
35 coverage_report:
36 path: cover_db/cobertura.xml
37 coverage_format: cobertura
38
39 perl:latest:
40 <<: *test
41
42 perl:5.28:
43 variables:
44 NEEDS_ARCHIVE: 1
45 <<: *test
46
47 test:committed:
48 stage: upstream
49 image: perl:latest
50 before_script:
51 - apt-get update && apt-get -y --no-install-recommends install git ffmpeg
52 - cpanm --notest ExtUtils::Depends
53 - cpanm --notest --installdeps .
54 - perl Makefile.PL
55 script:
56 - make manifest
57 - git diff --exit-code
58
59 test:critic:
60 stage: upstream
61 image: perl:latest
62 before_script:
63 - cpanm --notest Perl::Critic
64 script:
65 - perlcritic .
66
67 dput:
68 stage: publish
69 image: debian:stable
70 dependencies:
71 - build
72 allow_failure: true
73 before_script:
74 - apt-get update
75 - apt-get -y install dput-ng curl
76 - echo -e "[gitlab]\nmethod=https\nfqdn=https://gitlab-runner:$CI_JOB_TOKEN@$CI_SERVER_HOST\nincoming=/api/v4/projects/$CI_PROJECT_ID/packages/debian\n" > dput.cf
77 script:
78 - dput --config=dput.cf --unchecked --no-upload-log gitlab debian/output/*.changes