rpm-ostree/ci/clang-build-check.sh
Colin Walters 14f75f94ef ci: Split clang into separate script, run it in CoreOS CI
Let's do a build with clang as a cleanly separate context
instead of serially; and also do it unconditionally.  This
is prep for turning on more `-Werror` flow in both cases,
and also using clang `scan-build` in CI.
2021-02-01 04:54:52 -05:00

17 lines
327 B
Bash
Executable File

#!/usr/bin/bash
# Install build dependencies, run unit tests and installed tests.
# This script is what Prow runs.
set -xeuo pipefail
dn=$(dirname $0)
. ${dn}/libbuild.sh
# add cargo's directory to the PATH like we do in CoreOS CI
export PATH="$HOME/.cargo/bin:$PATH"
export CC=clang CXX=clang++
${dn}/build.sh
make check