add KEY_MACRO 1-30 and other keys
[evtest.git] / .gitlab-ci.yml
blob67d649b6dde0fbfa18e2eba4db5a6de39e4e52b8
1 # vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:
3 # This CI uses the freedesktop.org ci-templates.
4 # Please see the ci-templates documentation for details:
5 # https://freedesktop.pages.freedesktop.org/ci-templates/
7 .templates_sha: &template_sha c7702b1ae8507c5d5f34edcbf280f287ab541e8e # see https://docs.gitlab.com/ee/ci/yaml/#includefile
10 include:
11   # Alpine container builder template
12   - project: 'freedesktop/ci-templates'
13     ref: *template_sha
14     file: '/templates/alpine.yml'
17 stages:
18   - prep             # prep work like rebuilding the container images if there is a change
19   - build            # for actually building and testing things in a container
20   - deploy
23 variables:
24   FDO_UPSTREAM_REPO: 'libevdev/evtest'
25   # The tag should be updated each time the list of packages is updated.
26   # Changing a tag forces the associated image to be rebuilt.
27   # Note: the tag has no meaning, we use a date format purely for readability
28   ALPINE_TAG:  '2020-11-16.0'
29   ALPINE_PACKAGES:  'git gcc autoconf automake make libc-dev linux-headers gzip xmlto asciidoc'
32 # Build a container with the given tag and the packages pre-installed.
33 # This only happens if when the tag changes, otherwise the existing image is
34 # re-used.
36 container-prep:
37   extends:
38     - .fdo.container-build@alpine
39   stage: prep
40   variables:
41     GIT_STRATEGY: none
42     FDO_DISTRIBUTION_PACKAGES: $ALPINE_PACKAGES
43     FDO_DISTRIBUTION_TAG: $ALPINE_TAG
47 # The default build, runs on the image built above.
49 build-autotools:
50   stage: build
51   extends:
52     - .fdo.distribution-image@alpine
53   script:
54     - autoreconf -ivf
55     - mkdir _builddir
56     - pushd _builddir > /dev/null
57     - ../configure --disable-silent-rules
58     - make
59     - make check
60     - make distcheck
61     - popd > /dev/null
62   variables:
63     FDO_DISTRIBUTION_TAG: $ALPINE_TAG
67 # Pure gcc build, runs on the image built above.
69 compile-only:
70   stage: build
71   extends:
72     - .fdo.distribution-image@alpine
73   script:
74     - gcc -o evtest evtest.c
75   variables:
76     FDO_DISTRIBUTION_TAG: $ALPINE_TAG