.gitlab-ci.yml 2.32 KB
Newer Older
1
2
3
4
5
6
7
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:
#
# This CI uses the freedesktop.org ci-templates.
# Please see the ci-templates documentation for details:
# https://freedesktop.pages.freedesktop.org/ci-templates/

.templates_sha: &template_sha c5626190ec14b475271288dda7a7dae8dbe0cd76 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
8
9

include:
10
  - project: 'freedesktop/ci-templates'
11
    ref: *template_sha
12
    file: '/templates/fedora.yml'
13
14
15
  - project: 'freedesktop/ci-templates'
    ref: *template_sha
    file: '/templates/ci-fairy.yml'
16
  - template: Security/SAST.gitlab-ci.yml
17
18

variables:
19
  FDO_UPSTREAM_REPO: xorg/driver/xf86-input-libinput
20
21
22


stages:
23
  - containers
24
  - build
25
  - test
26

27
.fedora:
28
  variables:
29
    FDO_DISTRIBUTION_VERSION: 33
30
    FDO_DISTRIBUTION_PACKAGES: 'git autoconf automake libtool make xorg-x11-server-devel libudev-devel libevdev-devel libinput-devel xorg-x11-util-macros'
31
32
    FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/fedora-install.sh'
    FDO_DISTRIBUTION_TAG: '2021-09-15.0'
33
34


35
36
37
38
39
40
41
fedora@container_build:
  extends:
    - .fedora
    - .fdo.container-build@fedora
  stage: containers
  variables:
    GIT_STRATEGY: none
42
43


44
45
.default_build:
  stage: build
46
47
48
49
50
51
52
  script:
    - mkdir _builddir _inst
    - pushd _builddir > /dev/null
    - ../autogen.sh --prefix=$(realpath ../_inst) --disable-silent-rules
    - make && make check
    - make install
    - popd > /dev/null
53
54
55
56
57
58
  artifacts:
    name: "automake-logs-$CI_JOB_NAME"
    when: always
    expire_in: 1 week
    paths:
      - _builddir/config.log
59
60


61
fedora:33@default-build:
62
63
64
65
  extends:
    - .fedora
    - .fdo.distribution-image@fedora
    - .default_build
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98

#
# Verify that commit messages are as expected
#
check-commits:
  extends:
    - .fdo.ci-fairy
  stage: test
  script:
    - ci-fairy check-commits --junit-xml=results.xml
  except:
    - master@xorg/driver/xf86-input-libinput
  variables:
    GIT_DEPTH: 100
  artifacts:
    reports:
      junit: results.xml
  allow_failure: true

#
# Verify that the merge request has the allow-collaboration checkbox ticked
#
check-merge-request:
  extends:
    - .fdo.ci-fairy
  stage: test
  script:
    - ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
  artifacts:
    when: on_failure
    reports:
      junit: results.xml
  allow_failure: true