mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 18:01:32 +03:00
ade1e59ce1
* Add cross-compilation for `lmdb`. * Got built caching working in CI with `cachix`. * Cache cross compilation dependencies and toolchains. * Do release builds in CI. * Upload release builds to `bootstrap.urbit.org` on successful build. * Lots of optimization work for CI. * Boot from a solid pill in CI and load arvo with `-A`. * Increase `vere` HTTP timeout to 15m.
41 lines
563 B
Bash
Executable File
41 lines
563 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
pkg=$(nix-build nix/ops -A test --no-out-link "$@")
|
|
|
|
hdr () {
|
|
echo =====$(sed 's/./=/g' <<< "$1")=====
|
|
echo ==== $1 ====
|
|
echo =====$(sed 's/./=/g' <<< "$1")=====
|
|
}
|
|
|
|
for f in $(find $pkg/ -type f)
|
|
do
|
|
hdr $(basename $f)
|
|
cat $f
|
|
done
|
|
|
|
fail=0
|
|
|
|
for f in $(find "$pkg/" -type f)
|
|
do
|
|
if egrep "(ford|warn): " $f >/dev/null
|
|
then
|
|
if [[ $fail -eq 0 ]]
|
|
then
|
|
hdr "Test Failures"
|
|
fi
|
|
|
|
echo "ERROR Test failure in $(basename $f)"
|
|
((fail++))
|
|
fi
|
|
done
|
|
|
|
if [[ $fail -eq 0 ]]
|
|
then
|
|
hdr "Success"
|
|
fi
|
|
|
|
exit "$fail"
|