.gitlab-ci.yml 1.47 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:

include:
  - project: 'wayland/ci-templates'
    ref: 955e61e67cf29327cf907432f668df9eec4ca6a2 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
    file: '/templates/fedora.yml'


variables:
  FEDORA_RPMS: 'git autoconf automake libtool make xorg-x11-server-devel libudev-devel libevdev-devel libinput-devel xorg-x11-util-macros'
Peter Hutterer's avatar
Peter Hutterer committed
11
  FEDORA_TAG: '2020-05-19.0'
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  UPSTREAM_REPO: xorg/drivers/xf86-input-libinput
  BUILDAH_IMAGE: $CI_REGISTRY/wayland/ci-templates/buildah:latest
  FEDORA_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FEDORA_VERSION:$FEDORA_TAG


stages:
  - containers-build
  - build


container_build:
  extends: .fedora@container-ifnot-exists
  stage: containers-build
  variables:
    GIT_STRATEGY: none
Peter Hutterer's avatar
Peter Hutterer committed
27
    FEDORA_VERSION: 32
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


.default_artifacts: &default_artifacts
  artifacts:
    name: "automake-logs-$CI_JOB_NAME"
    when: always
    expire_in: 1 week
    paths:
      - _builddir/config.log


.default_build: &default_build
  script:
    - mkdir _builddir _inst
    - pushd _builddir > /dev/null
    - ../autogen.sh --prefix=$(realpath ../_inst) --disable-silent-rules
    - make && make check
    - make install
    - popd > /dev/null


.build@template:
  stage: build
  <<: *default_artifacts
  <<: *default_build
  dependencies: []


.fedora-build@template:
  extends: .build@template
  image: $FEDORA_CONTAINER_IMAGE


Peter Hutterer's avatar
Peter Hutterer committed
61
fedora:32@default-build:
62
63
  extends: .fedora-build@template
  variables:
Peter Hutterer's avatar
Peter Hutterer committed
64
    FEDORA_VERSION: 32