ostree/.redhat-ci.yml
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

102 lines
1.5 KiB
YAML

branches:
- master
- auto
- try
required: true
context: f25-sanitizer
container:
image: projectatomic/ostree-tester
packages:
- libasan
- coccinelle
env:
CFLAGS: '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address -O2 -Wp,-D_FORTIFY_SOURCE=2'
ASAN_OPTIONS: 'detect_leaks=0' # Right now we're not fully clean, but this gets us use-after-free etc
# TODO when we're doing leak checks: G_SLICE: "always-malloc"
build:
config-opts: >
--prefix=/usr
--libdir=/usr/lib64
--enable-installed-tests
--enable-gtk-doc
tests:
- make syntax-check
- make check
- gnome-desktop-testing-runner -p 0 ostree
timeout: 30m
artifacts:
- test-suite.log
---
inherit: true
required: true
context: f25-clang
env:
CC: 'clang'
CFLAGS: '-Werror=unused-variable'
tests:
artifacts:
---
inherit: true
context: f25-rust
packages:
- cargo
build:
config-opts: >
--prefix=/usr
--libdir=/usr/lib64
--enable-installed-tests
--enable-gtk-doc
--enable-rust
env:
CC: 'gcc'
tests:
- make check TESTS=tests/test-rollsum
---
inherit: true
required: true
context: f25-curl-openssl
packages:
- pkgconfig(libcurl)
- pkgconfig(openssl)
build:
config-opts: >
--prefix=/usr
--libdir=/usr/lib64
--enable-installed-tests
--enable-gtk-doc
--with-curl
--with-openssl
tests:
- make check
- gnome-desktop-testing-runner -p 0 ostree
artifacts:
- test-suite.log