This commit is contained in:
parent
fb994dbf31
commit
df1cab23ce
@ -52,21 +52,30 @@ function title() {
|
||||
echo
|
||||
}
|
||||
|
||||
function subtitle() {
|
||||
local subtitle="$1"
|
||||
echo " "
|
||||
echo "--------------------------------"
|
||||
echo "$subtitle"
|
||||
echo " "
|
||||
}
|
||||
|
||||
function buildtestpublish() {
|
||||
local dir="$1"
|
||||
|
||||
title "PROCESSING $dir"
|
||||
TOOLNAME=$(basename "$dir")
|
||||
TOOLNAME=$(echo "$TOOLNAME" | tr '[:lower:]' '[:upper:]')
|
||||
title "🔧 $TOOLNAME 🔧"
|
||||
|
||||
cd "$dir"
|
||||
TOOLNAME=$(basename "$dir")
|
||||
|
||||
echo "Building $TOOLNAME"
|
||||
subtitle "🔨 BUILDING $TOOLNAME 🔨"
|
||||
dothis build "$dir"
|
||||
|
||||
echo "Testing $TOOLNAME"
|
||||
subtitle "🔍 TESTING $TOOLNAME 🔍"
|
||||
dothis test "$dir"
|
||||
|
||||
echo "Publishing $TOOLNAME"
|
||||
subtitle "📦 PUBLISHING $TOOLNAME 📦"
|
||||
dothis publish "$dir"
|
||||
|
||||
echo "Done"
|
||||
|
Loading…
x
Reference in New Issue
Block a user