14f75f94ef
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.
17 lines
327 B
Bash
Executable File
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
|