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
|
|
@ -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
|
# cosa buildroot container
|
||||||
# https://github.com/coreos/coreos-assembler/pull/730
|
# https://github.com/coreos/coreos-assembler/pull/730
|
||||||
# And using `yum` at all means we can flake on fetching rpm metadata
|
# 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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue