dbdbaf87ee
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
19 lines
371 B
Bash
Executable File
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:-}
|