repo: verbosity
This commit is contained in:
parent
4626176222
commit
84757560fc
|
@ -2,8 +2,7 @@ cd /piston/packages
|
||||||
|
|
||||||
SERVER=1
|
SERVER=1
|
||||||
BUILD=1
|
BUILD=1
|
||||||
|
CI=0
|
||||||
ls -la /piston /piston/*
|
|
||||||
|
|
||||||
echo "Running through arguments.."
|
echo "Running through arguments.."
|
||||||
|
|
||||||
|
@ -20,22 +19,26 @@ do
|
||||||
echo "Running in CI mode, --no-build, --no-server"
|
echo "Running in CI mode, --no-build, --no-server"
|
||||||
BUILD=0
|
BUILD=0
|
||||||
SERVER=0
|
SERVER=0
|
||||||
SHA=$1
|
CI=1
|
||||||
shift
|
else
|
||||||
echo "Commit Sha: $SHA"
|
if [[ $BUILD -eq 1 ]]; then
|
||||||
PACKAGES=$(git diff-tree --no-commit-id --name-only -r $SHA | awk -F/ '{ print $2 "-" $3 }' | sort -u)
|
echo "Building package $pkg"
|
||||||
|
make -j16 $pkg.pkg.tar.gz
|
||||||
|
echo "Done with package $pkg"
|
||||||
|
elif [[ $CI -eq 1 ]]; then
|
||||||
|
echo "Commit SHA: $pkg"
|
||||||
|
|
||||||
|
echo "Changed files:"
|
||||||
|
git diff-tree --no-commit-id --name-only -r $pkg
|
||||||
|
|
||||||
|
PACKAGES=$(git diff-tree --no-commit-id --name-only -r $pkg | awk -F/ '{ print $2 "-" $3 }' | sort -u)
|
||||||
echo "Building packages: $PACKAGES"
|
echo "Building packages: $PACKAGES"
|
||||||
for package in "$PACKAGES"; do
|
for package in "$PACKAGES"; do
|
||||||
make -j16 $package.pkg.tar.gz
|
make -j16 $package.pkg.tar.gz
|
||||||
done
|
done
|
||||||
|
|
||||||
else
|
else
|
||||||
if [[ $BUILD -eq 1 ]]; then
|
echo "Building was disabled, skipping $pkg build=$BUILD ci=$CI"
|
||||||
echo "Building package $pkg"
|
|
||||||
make -j16 $pkg.pkg.tar.gz
|
|
||||||
echo "Done with package $pkg"
|
|
||||||
else
|
|
||||||
echo "Building was disabled, skipping $pkg"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue