Commit graph

15 commits

Author SHA1 Message Date
Peter Hutterer
a59474b5ca gitlab CI: fail the CI early if the fork is private
Copied from libinput, this provides a better error message than weirdly
failing jobs.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-03-03 00:31:18 +00:00
Peter Hutterer
6926175e30 gitlab CI: drop the requirement for Signed-off-by
I'm starting to question this, there are plenty of large projects
where this isn't a requirement (GNOME, systemd, ...) and libei doesn't
exactly contain sophisticated technology that needs a DCO.

Plus, it's a constant source of confusion for new contributors.
Let's drop the requirement.
2022-03-03 00:24:41 +00:00
Peter Hutterer
46e65370c6 gitlab CI: add a -Werror job (allowed to fail)
Most of the time we don't pay attention to the details in the actual
jobs, them passing is good enough. So let's have at least one job with
-Werror that fails if our CI has warnings we don't have locally.
Allowed to fail because we don't want to be beholden to compiler changes
(though having this fail for a long period makes the job less useful
again).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-03-02 16:26:16 +10:00
Peter Hutterer
06ce6c3a92 gitlab CI: move the pages job configuration to config.yml
Makes it less error-prone to forgetful updates like 191913, I hope.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-03-02 16:26:16 +10:00
Peter Hutterer
191913a9e3 gitlab CI: update the pages job to F35 too
Almost like there was a comment there telling me to do exactly that and
I didn't notice...

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-02-16 14:48:41 +10:00
Peter Hutterer
d3149b75c2 gitlab CI: update to build on F35 and latest ci-templates
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-02-16 13:36:59 +10:00
Peter Hutterer
627db8d91e gitlab CI: bump the pages job to F34 too
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-08-16 16:09:26 +10:00
Peter Hutterer
a240e181c0 gitlab CI: bump the Fedora version to 34
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-08-16 15:50:07 +10:00
Peter Hutterer
e06d9bd380 meson.build: disable documentation by default
This is in gitlab pages and designed to be an online documentation,
let's not require everyone to build it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-08-16 14:58:51 +10:00
Peter Hutterer
261f34eda8 meson.build: fix the doxygen generation
Having an output of '.' means the $builddir/doc directory was removed on ninja
clean, only for ninja to then fail because doc/libei.h wasn't there. Let's use
the reference from meson test cases itself.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-29 17:29:40 +10:00
Peter Hutterer
96ba358984 doc: hook up doxygen
Build the doxygen API documentation. This is copied from libinput so it takes
over that style (which is more readable than the default doxygen style).
Some extra documentation is added too and all the immediate errors are fixed
in this commit but doxygen still warns about undocumented parameters.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-28 12:00:08 +10:00
Peter Hutterer
24a74f1b26 gitlab CI: change the repo location to the proper upstream one
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-16 08:15:18 +10:00
Peter Hutterer
6b3d9255cf libei: implement org.freedesktop.portal.EmulatedInput support
The current implementation of that portal has two methods: EmulateInput to
authenticate and Connect to get the fd to the EIS implementation. The portal
implementation is in charge of finding EIS and restricting it if need be.

This uses libsystemd because we can integrate that with epoll and our
libei_dispatch() method. GDBus requires a glib mainloop, so it's not really
suitable here. Given how simple this is anyway, it's easy to just do the DBus
bits in the caller and then hand the fd to ei_setup_backend_fd().

A eis-fake-portal is provided for testing, this "portal" can use the custom
portal bus name and connect the eis-demo-client to the eis-demo-server.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-08-25 13:35:18 +10:00
Peter Hutterer
4af29d930a tools: add keymap handling to the socket demos
Client sets layout fr, server accepts it and prints azerty for the keys
pressed.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-08-21 18:57:25 +10:00
Peter Hutterer
a835093321 Add gitlab CI
Mostly copied from libinput and simplified so we only test on Fedora for now.
Good enough that it should catch accidental breakages.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-08-20 16:07:54 +10:00