Continuous Integration: Test package installaton after successful build.

This commit is contained in:
Qian Hong
2016-02-08 06:23:31 +08:00
parent 0749ae8c75
commit 47ead3c24b

View File

@@ -25,7 +25,13 @@ test -z "${recipes}" && success 'no changes in package recipes'
# Build
for recipe in "${recipes[@]}"; do
cd "$(dirname ${recipe})"
echo
echo "Build start: $(dirname ${recipe})"
makepkg --syncdeps --noconfirm --skippgpcheck --nocheck --noprogressbar || failure "could not build ${recipe}"
cd - > /dev/null
done
# Install
echo
echo "Install packages:" */*.pkg.tar.xz
pacman -U --noconfirm */*.pkg.tar.xz