Skip to content

Instantly share code, notes, and snippets.

@abenson
Last active March 7, 2018 23:45
Show Gist options
  • Save abenson/34f96c1cda7a1b9f1e3a1f3eee5df789 to your computer and use it in GitHub Desktop.
Save abenson/34f96c1cda7a1b9f1e3a1f3eee5df789 to your computer and use it in GitHub Desktop.
you got any of them travises
#!/bin/sh
pkg="$1"
shift
if [ -z $pkg ]; then
echo "usage: $0 <pkg>"
exit
fi
timestamp=$(date +%s)
xlint srcpkgs/$pkg/template | tee "$pkg-xlint-$timestamp.log"
for arch in i686 x86_64 aarch64 armv7hf x86_64-musl armv6hf-musl aarch64-musl; do
./xbps-src -f clean > "$pkg-$arch-$timestamp.log" 2>&1
if [ $(xbps-uhelper arch) = $arch ]; then
./xbps-src -f pkg $pkg >> "$pkg-$arch-$timestamp.log" 2>&1
else
./xbps-src -f -a $arch pkg $pkg >> "$pkg-$arch-$timestamp.log" 2>&1
fi
if [ $? -ne 0 ]; then
echo "Failed for $arch"
else
echo "Passed for $arch"
fi
done
tar zcvf $pkg-logs-$timestamp.tar.gz $pkg-*-$timestamp.log
rm $pkg-*-$timestamp.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment