c48e8bfad3
Now that `ci/installdeps.sh` gracefully exits if run as non-root, we can fold the cargo bits into the our build scripts and avoid invoking both of them. However, now we need to split test deps to separate file because we won't have `cargo` in the main cosa pod. This also fixes a FIXME. Steal the `grep` invocation from cosa and make it a declarative text file so we can have comments per package etc.
17 lines
505 B
Bash
Executable File
17 lines
505 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
dn=$(dirname $0)
|
|
. ${dn}/libbuild.sh
|
|
|
|
# fetch tags so `git describe` gives a nice NEVRA when building the RPM
|
|
git fetch origin --tags
|
|
git submodule update --init --recursive
|
|
ci/installdeps.sh
|
|
# Our primary CI build goes via RPM rather than direct to binaries
|
|
# to better test that path, including our vendored spec file, etc.
|
|
# The RPM build expects pre-generated bindings, so do that now.
|
|
make -f Makefile.bindings bindings
|
|
cd packaging
|
|
make -f Makefile.dist-packaging rpm
|