ostree/.redhat-ci.yml
Colin Walters 562cb55f51 ci: Enable -Werror=unused-result with -Wp,-D_FORTIFY_SOURCE=2
(Also rename the other CI contexts to be more consistent)

We pass this right now. I just noticed an instance of this in bwrap, and I think
we should be trying to match the RPM build baseline.

Closes: #765
Approved by: jlebon
2017-03-28 18:56:18 +00:00

101 lines
1.5 KiB
YAML

branches:
- master
- auto
- try
required: true
context: f25-sanitizer
container:
image: projectatomic/ostree-tester
packages:
- libasan
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