Files
ostree/.redhat-ci.Dockerfile
T
Colin Walters 305db981d4 Add Coccinelle usage: one for blacklisting, one for patch collection
This is inspired by the [Coccinelle](http://coccinelle.lip6.fr/) usage
in systemd.  I also took it a bit further and added infrastructure
to have spatches which should never apply.  This acts as a blacklist.

The reason to do the latter is that coccinelle is *way* more powerful than the
regular expresssions we have in `make syntax-check`.

I started with blacklisting `g_error_free()` directly. The reason that's bad is
it leaves a dangling pointer.

Closes: #754
Approved by: jlebon
2017-03-30 19:19:54 +00:00

27 lines
488 B
Docker

FROM fedora:25
RUN dnf install -y \
gcc \
sudo \
which \
attr \
fuse \
gjs \
parallel \
coccinelle \
clang \
libubsan \
libasan \
libtsan \
PyYAML \
gnome-desktop-testing \
redhat-rpm-config \
elfutils \
'dnf-command(builddep)' \
&& dnf builddep -y \
ostree \
&& dnf clean all
# create an unprivileged user for testing
RUN adduser testuser