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
24 lines
753 B
Bash
Executable File
24 lines
753 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
|
|
|
|
install_builddeps rpm-ostree
|
|
|
|
# ⚠ Pull latest ostree for https://github.com/ostreedev/ostree/issues/758
|
|
# And we now depend on 2017.4
|
|
# Also, there's a copy of this below in the compose context
|
|
# And also in tests/vmcheck/overlay.sh
|
|
yum -y install https://kojipkgs.fedoraproject.org//packages/ostree/2017.5/2.fc25/x86_64/ostree-{,libs-,devel-,grub2-}2017.5-2.fc25.x86_64.rpm
|
|
|
|
dnf install -y createrepo_c /usr/bin/jq PyYAML clang \
|
|
libubsan libasan libtsan elfutils fuse sudo gnome-desktop-testing
|
|
|
|
# create an unprivileged user for testing
|
|
adduser testuser
|
|
|
|
build --enable-installed-tests --enable-gtk-doc
|