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
11 # Alpine container builder template
12 - project: 'freedesktop/ci-templates'
14 file: '/templates/alpine.yml'
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
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
38 - .fdo.container-build@alpine
42 FDO_DISTRIBUTION_PACKAGES: $ALPINE_PACKAGES
43 FDO_DISTRIBUTION_TAG: $ALPINE_TAG
47 # The default build, runs on the image built above.
52 - .fdo.distribution-image@alpine
56 - pushd _builddir > /dev/null
57 - ../configure --disable-silent-rules
63 FDO_DISTRIBUTION_TAG: $ALPINE_TAG
67 # Pure gcc build, runs on the image built above.
72 - .fdo.distribution-image@alpine
74 - gcc -o evtest evtest.c
76 FDO_DISTRIBUTION_TAG: $ALPINE_TAG