rpm-ostree/ci/build.sh
Jonathan Lebon dbdbaf87ee ci: Make adduser invocation idempotent
This is a bit of a selfish request, though I also really like
`ci/build.sh` for hacking in a throwaway environment. This patch allows
one to rerun `ci/build.sh` without erroring out on `testuser` already
existing.

Closes: #1621
Approved by: cgwalters
2018-10-16 16:03:06 +00:00

19 lines
371 B
Bash
Executable File

#!/usr/bin/bash
# Install build dependencies and then build.
set -xeuo pipefail
dn=$(dirname $0)
. ${dn}/libbuild.sh
${dn}/installdeps.sh
# create an unprivileged user for testing
if ! getent passwd testuser; then
adduser testuser
fi
export LSAN_OPTIONS=verbosity=1:log_threads=1
# And now the build
build --enable-installed-tests --enable-gtk-doc ${CONFIGOPTS:-}