4bbea19a31
The Dockerfile is problematic since we can't update it atomically. I also really dislike reliance on the Hub. Further, I think rather than caching our build deps as built containers, we should be caching RPMs in CI. And we should be using rpm-ostree at some point to assemble filesystem trees faster. Also, consolidate the clang to be serial with gcc, since while we lose a tiny bit of parallelism, it's not really worth its own context right now. Closes: #759 Approved by: jlebon
19 lines
415 B
Bash
Executable File
19 lines
415 B
Bash
Executable File
#!/usr/bin/bash
|
|
# Install build dependencies, run unit tests and installed tests.
|
|
|
|
set -xeuo pipefail
|
|
|
|
dn=$(dirname $0)
|
|
. ${dn}/libbuild.sh
|
|
${dn}/build.sh
|
|
make check
|
|
make install
|
|
gnome-desktop-testing-runner rpm-ostree
|
|
sudo --user=testuser gnome-desktop-testing-runner rpm-ostree
|
|
git clean -dfx
|
|
|
|
# And now a clang build to find unused variables
|
|
export CC=clang
|
|
export CFLAGS='-Werror=unused-variable'
|
|
build_default
|