[systemd-devel] [PATCH] travis: Add a travis.yml for doing CI after commits

Lennart Poettering lennart at poettering.net
Fri Jul 12 10:51:26 PDT 2013


On Tue, 09.07.13 18:09, Holger Hans Peter Freyther (holger at freyther.de) wrote:

> From: Holger Hans Peter Freyther <holger at moiji-mobile.com>
> 
> Instruct travis-ci to build systemd and create a tarball. In case
> of an error travis-ci will complain on IRC. The systemd testsuite
> currently requires the host to have a recent version of systemd
> installed and running. This is not the case for the Ubuntu VM of
> travis-ci. This means make check and make distcheck will result in
> a build failure and to avoid this these commands are not executed.
> 
> This requires a one time configuration on travis-ci for the repo
> on github by the owner of the repo.

Commited. I figure this will not be useful right-away, since current git
of systemd requires a very new version of kmod that is not available at
Travis. However, it's still a good thing to have and to enable as soon
as that issue is solved.

BTW, I am totally happy if our tests get fixed (or even skipped) to not
require a systemd running. It's simply that on our own machines we never
have these issues, and that's where we run "make check" most of the
time.

I figure a simple 

        if (sd_booted() <= 0)
                return EXIT_TEST_SKIP;

at the top of the tests in question would already be a big step
forward. And then we could work on enabling more tests as things go.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list