summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 3ae114202f0d765c40f8e4858780d45af66b54d9 (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
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:

.templates_sha: &template_sha 395535ce90eb48e260c0dff12c35d9237e22c539 # see https://docs.gitlab.com/ee/ci/yaml/#includefile

include:
  - project: 'freedesktop/ci-templates'
    ref: *template_sha
    file: '/templates/fedora.yml'

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
    - if: $CI_PIPELINE_SOURCE == 'push'

stages:
  - prep             # prep work like rebuilding the container images if there is a change
  - build            # for actually building and testing things in a container

variables:
  FDO_UPSTREAM_REPO: libevdev/evemu
  FDO_DISTRIBUTION_VERSION: 32
  FDO_DISTRIBUTION_TAG: '2020-03-23'

qemu-prep:
  extends:
    - .fdo.qemu-build@fedora
  stage: prep
  tags:
    - kvm
  variables:
    GIT_STRATEGY: none
    FDO_DISTRIBUTION_PACKAGES: 'autoconf automake libtool make gcc libevdev-devel python3 g++'
  allow_failure: true

build:
  extends:
    - .fdo.distribution-image@fedora
  stage: build
  tags:
    - kvm
  script:
    - /app/start_vm.sh
    - "scp -P 5555 -r $PWD localhost:"
    - ssh localhost -p 5555 "cd $CI_PROJECT_NAME ; ./autogen.sh --enable-silent-rules && make && make distcheck" && touch .success || true
  artifacts:
    paths:
      - console.out