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
|
|
||||||
echo "Commit Sha: $SHA"
|
|
||||||
PACKAGES=$(git diff-tree --no-commit-id --name-only -r $SHA | awk -F/ '{ print $2 "-" $3 }' | sort -u)
|
|
||||||
echo "Building packages: $PACKAGES"
|
|
||||||
for package in "$PACKAGES"; do
|
|
||||||
make -j16 $package.pkg.tar.gz
|
|
||||||
done
|
|
||||||
|
|
||||||
else
|
else
|
||||||
if [[ $BUILD -eq 1 ]]; then
|
if [[ $BUILD -eq 1 ]]; then
|
||||||
echo "Building package $pkg"
|
echo "Building package $pkg"
|
||||||
make -j16 $pkg.pkg.tar.gz
|
make -j16 $pkg.pkg.tar.gz
|
||||||
echo "Done with package $pkg"
|
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"
|
||||||
|
for package in "$PACKAGES"; do
|
||||||
|
make -j16 $package.pkg.tar.gz
|
||||||
|
done
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Building was disabled, skipping $pkg"
|
echo "Building was disabled, skipping $pkg build=$BUILD ci=$CI"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue