mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-16 10:50:43 +03:00
Merge pull request #2275 from cgwalters/ci-rework
CI: run as non-root and add sanitizer build+check
This commit is contained in:
commit
f0b619dfb9
12
ci/build-check-sanitized.sh
Executable file
12
ci/build-check-sanitized.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/bash
|
||||
# Build with ASAN and UBSAN + unit tests.
|
||||
|
||||
set -xeuo pipefail
|
||||
|
||||
dn=$(dirname $0)
|
||||
. ${dn}/libbuild.sh
|
||||
export CFLAGS='-fsanitize=address -fsanitize=undefined -fsanitize-undefined-trap-on-error'
|
||||
# We leak global state in a few places, fixing that is hard.
|
||||
export ASAN_OPTIONS='detect_leaks=0'
|
||||
${dn}/build.sh
|
||||
make check
|
@ -7,7 +7,7 @@ set -xeuo pipefail
|
||||
# cosa buildroot container
|
||||
# https://github.com/coreos/coreos-assembler/pull/730
|
||||
# And using `yum` at all means we can flake on fetching rpm metadata
|
||||
if [ -n "${SKIP_INSTALLDEPS:-}" ]; then
|
||||
if [ -n "${SKIP_INSTALLDEPS:-}" ] || test "$(id -u)" != 0; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user