rpm-ostree/ci/build.sh
Jonathan Lebon 6b928e8f0e ci: Build the whole tree, not just rust bits
Otherwise, we're not testing everything. E.g. the cbindgen bits.

Closes: #1778
Approved by: cgwalters
2019-03-07 21:57:08 +00:00

22 lines
468 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
# make it clear what rustc version we're compiling with (this is grepped in CI)
rustc --version
export LSAN_OPTIONS=verbosity=1:log_threads=1
# And now the build
build --enable-installed-tests --enable-gtk-doc ${CONFIGOPTS:-}