summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
Commit message (Collapse)AuthorAgeFilesLines
* CI: bump to new fedoras and ubuntusHEADmasterPeter Hutterer2023-05-081-67/+67
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: add new workflow rulesPeter Hutterer2023-03-151-0/+5
| | | | | | | Required for pipelines to run after some infrastructure changes, see https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: bump to latest fedorasPeter Hutterer2023-02-151-52/+52
| | | | | | | The F37 update was delayed by https://github.com/systemd/systemd/pull/25941 which is now available in F37 as of v251.11 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* CI: bump b2c and kernelBenjamin Tissoires2023-02-081-3/+3
| | | | Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
* gitlab CI: use b2c instead of qemuPeter Hutterer2023-01-051-79/+36
| | | | | | | | | | | | This is copied from libinput's CI but as one large change rather than cherry-picking the process on how to get here. meson-build.sh is synched with libinput's version - it is a more generic version anyway. With this change we no longer require separate images for the qemu runs, our default image is qemu-capable and can be run in qemu via boot2container (b2c). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: pass the --no-suite to meson buildsPeter Hutterer2023-01-051-1/+4
| | | | | | | | Only use the LIBEVDEV_SKIP_ROOT_TESTS env var in autotools where we need it, in meson we can use meson to control which tests we (don't) want to run. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: drop the ninja dist for every jobPeter Hutterer2023-01-051-3/+1
| | | | | | | | | | Unlike autotools distcheck which ensures we didn't forget to add anything to the makefiles, ninja dist just zips up the git repo. It does run the tests though but without suite selection which is a problem for us here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: skip the right tests in the tarball jobsPeter Hutterer2023-01-051-3/+3
| | | | | | | Use the new needs-uinput suite specifier for the meson build job, and use --no-tests for ninja dist in the autotools build job. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: add the tests that need uinput into a needs-uinput suitePeter Hutterer2023-01-051-0/+3
| | | | | | This way we can skip it all by meson test --no-suite=needs-uinput Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: drop MESON_SKIP_TEST variablesPeter Hutterer2023-01-051-3/+0
| | | | | | | | | | | | | | In the no-check:meson job, the ninja arg was "dist" so the test would be run as part of that anyway (and skipped, since we didn't have check). In the no-doxygen-check:meson job, the ninja arg was zero so the test would be skipped but since we don't have check we might as well just run it as empty test suite. And the same applies to the scan-build job, running the test shouldn't hurt here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: drop the custom meson to junit conversion scriptPeter Hutterer2023-01-051-2/+2
| | | | | | | And always collect test logs, makes it easier to debug when things fail to go wrong Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: bump to newer UbuntusPeter Hutterer2023-01-041-41/+41
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: bump to a newer version of the templatesPeter Hutterer2023-01-041-1/+1
| | | | | | | Required by the debian sid containers, otherwise we fail because of a missing /etc/apt/sources.list file. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: do not retry the qemu runsPeter Hutterer2023-01-041-4/+0
| | | | | | | See libinput commit fb4f4131a112201c86c510179cfc939fcfa8aece by Benjamin Tissoires Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: prettify the include of templatesPeter Hutterer2023-01-041-18/+11
| | | | | | | Identical to libinput commit c8c825289f1b7575ee10b849c04f5caa60483a7e by Benjamin Tissoires. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update to current distribution versions, drop CentosPeter Hutterer2022-02-021-176/+80
| | | | | | | No big point building for Centos 7 anywmore, and Centos 8 is now Centos Stream only which needs fixing in the CI templates first. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update to latest ci-templatesPeter Hutterer2021-07-261-14/+14
| | | | | | | We can ditch the custom localhost usages and instead use the vmctl and ssh-config aliases. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: bump to Fedora 34 and Ubuntu 21.04Peter Hutterer2021-05-191-60/+60
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: make the tarball distro selection automaticPeter Hutterer2021-05-191-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: make the qemu selection automaticPeter Hutterer2021-05-191-24/+0
| | | | | | | | | Generate the snippet for whichever is the last version in the list for the want_qemu tag. And move the want_qemu tag up so it's more obvious in the config file. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: use Fedora 33 and Ubuntu 20.10Peter Hutterer2021-01-041-62/+60
| | | | | | | This requires latest CI templates for the mkosi changes. Since the start_vm.sh script is now gone, switch to using vmctl instead. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab ci: run the qemu jobs on F32Peter Hutterer2020-09-111-13/+13
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update to use F32Peter Hutterer2020-09-111-51/+51
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: move MR check to a later stagePeter Hutterer2020-06-301-1/+2
| | | | | | | | This gives the developer enough time to file an MR after pushing a branch. Having this run in the first stage means we get false positives because no MR has been filed yet when the job is run. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: fix the repo name for excluding checks on masterPeter Hutterer2020-06-161-1/+1
| | | | | | Fixes 2698867311db78a7190bba1a20f0f27cfa04ffad Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: use ci-fairy to check commits and merge requestsPeter Hutterer2020-06-161-11/+25
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: move the pip dependencies to before_scriptPeter Hutterer2020-06-041-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: alpine needs pip explicitly installed nowPeter Hutterer2020-06-041-3/+3
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab-ci: update to ubuntu 20.04Peter Hutterer2020-05-011-31/+31
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update docs for how to schedule the auth variablePeter Hutterer2020-03-181-1/+1
| | | | | | | Safer to have this defined in the scheduled job only rather than the project itself. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: move to use ci-fairyPeter Hutterer2020-03-181-8/+7
| | | | | | | | | | | ci-templates now has a new tool ci-fairy that replaces our jinja generation script with something (eventually) unified across project repositories. Let's move the files to the expected locations .gitlab-ci/config.yml and .gitlab-ci/ci.template. ci-fairy also has a wrapper to delete images, let's start using that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: use the new templates with a single job onlyPeter Hutterer2020-03-171-103/+59
| | | | | | | No more ifnot-exists, it's all build now with a variable to control the forced rebuild. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: rebuild images for the new templatesPeter Hutterer2020-03-131-14/+14
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: use the ifnot-exists templates from ci-templatesPeter Hutterer2020-03-131-51/+203
| | | | | | | | | | Let's not duplicate the functionality, use the upstream templates because they'll actually see improvements over time. Define two jobs, one that is the ifnot-exists job and one that is the normal container-build job. The second one only runs on schedules. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: remove obsolete variable expansionPeter Hutterer2020-03-131-2/+1
| | | | | | | gitlab doesn't support double-nested variables so we can assume that these variables don't need further expansion Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: Use the new fdo CI templates distribution imagesPeter Hutterer2020-03-131-39/+20
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: make the container-clean dependent on container-prepPeter Hutterer2020-03-131-0/+10
| | | | | | | | This is a test commit only to speed things up when testing the container-clean phase. In the real instance, we don't want to remove our containers until the test suite successfully completes on the new container. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: add static-build meson pipelinePeter Seiderer2020-03-111-0/+7
| | | | Signed-off-by: Peter Seiderer <ps.report@gmx.net>
* gitlab ci: add a helper script for container deletionPeter Hutterer2020-03-091-64/+13
| | | | | | | Rather than raw curl requests to the API, use a python script using the gitlab python package to access everything. This makes things a bit more readable. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update to the distribution-independent CI-templatesPeter Hutterer2020-03-091-237/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These templates get rid of the various distribution-specific naming and instead default to the namespaced FDO_DISTRIBUTION_<foo> for whatever value we need. So FEDORA_RPMS, DEBIAN_DEBS etc. becomes FDO_DISTRIBUTION_PACKAGES for example. By necessity this is one large commit. gitlab does not allow nested variable expansion, so the previous approach of global variables didn't work. Specifically, we'd end up with a template in this form: variables: FEDORA_TAG: 12345 .base_template: variables: DISTRO_IMAGE: $DISTRO_TAG .fedora: variables: $DISTRO_TAG: $FEDORA_TAG But the actual DISTRO_IMAGE variable would be the literal string $FEDORA_TAG, not the value of that variable. So all of it needed to be reworked. Specifically: - the packages to install moved to the config yaml file - the distribution tag is now in the config yaml file - all distributions now share the same tag (because lazyness) - there are .fedora:30, .debian:stable, etc. templates now with the variables defined as needed, jobs will extends those templates as they need those distributions - qemu-prep jobs are now generated too (based on the config yaml file) Overall, it ends up cleaner despite the mess in this patch. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: expire the results.xml artifactsPeter Hutterer2020-03-061-0/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: keep the results of the check-commit job as artifactPeter Hutterer2020-03-021-0/+3
| | | | | | | | | | Due to how pytest is used, we don't get the actual errors printed in the commandline log if this job fails. This doesn't matter in merge requests where the results are displayed nicely but where there's no merge request we can't get this info out at all. So let's simply store the xml file for an easy check. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Use editorconfig instead of a sprinkling of :vim: instructionsPeter Hutterer2020-02-271-2/+0
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: drop the distribution "flavor" in favor of just the namePeter Hutterer2020-02-261-19/+19
| | | | | | | This is a leftover from ci-templates where the name of a distribution didn't necessarily match the image (arch vs archlinux) and is no longer needed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: move the container-clean git strategy to the parent sectionPeter Hutterer2020-02-261-10/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: don't allow failures on the kvm jobsPeter Hutterer2020-02-261-1/+0
| | | | | | | | This is a leftover from libinput where we have to allow failures because of frequent issues with timing. We don't have these issues here so a failed job in the VM indicates a bug. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update to the latest ci-templates againPeter Hutterer2020-02-251-9/+9
| | | | | | | | Unclear what happend but I suspect a rebase went wrong so e03cdd1d3ff3731eb1432501c48b742e2c6e34ca didn't actually update to the new ci-templates. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: re-use the meson-build.sh script for normal meson jobsPeter Hutterer2020-02-241-6/+5
| | | | | | Let's invoke the same meson steps for every build task. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: hook up junit test reports to the meson resultsPeter Hutterer2020-02-241-0/+2
| | | | | | | | | | | The KVM tests use this for now, not the container builds where we run meson directly. The python script to convert meson test logs to junit results expects suite names, so let's add all tests to suites so we don't need to carry local modifications. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update to latest ci-templatesPeter Hutterer2020-02-241-8/+8
| | | | | | | This gives us a warning where qemu failed to start and it gets rid of the different "flavor" that only archlinux had different to the distribution name. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>