mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-30 01:47:53 +03:00
5aefe17ee9
I only recently realized this was possible. While we're still seeing leaks in the CI environment for some reason, adding ASAN gives us use-after-free detection etc., which is obviously still very useful even if we're not doing leak checking. Closes: #622 Approved by: jlebon
49 lines
767 B
YAML
49 lines
767 B
YAML
branches:
|
|
- master
|
|
- auto
|
|
- try
|
|
|
|
required: true
|
|
|
|
container:
|
|
image: projectatomic/ostree-tester
|
|
|
|
packages:
|
|
- libasan
|
|
|
|
env:
|
|
CFLAGS: '-fsanitize=undefined -fsanitize=address'
|
|
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: Clang
|
|
|
|
env:
|
|
CC: 'clang'
|
|
CFLAGS: '-Werror=unused-variable'
|
|
|
|
tests:
|
|
artifacts:
|