mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-21 23:25:08 +00:00
dev: improve some scripts
This commit is contained in:
parent
fc847c3510
commit
c85af776ba
@ -5,7 +5,7 @@
|
||||
#
|
||||
# Description: run all tests, exit after failed test
|
||||
#
|
||||
#### $$VERSION$$ v1.21-pre-7-g74dfdd7
|
||||
#### $$VERSION$$ v1.21-pre-45-gfc847c3
|
||||
#############################################################
|
||||
|
||||
# magic to ensure that we're always inside the root of our application,
|
||||
@ -51,6 +51,7 @@ do
|
||||
printf "TEST: %s\n" "${test}"
|
||||
"${test}" "${TESTENV}"
|
||||
ret=$?
|
||||
set +e
|
||||
if [ "$ret" -eq 0 ] ; then
|
||||
printf "OK: ---- %s\n" "${test}"
|
||||
passed=$((passed+1))
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
# works together with git pre-push.sh and ADD all changed files since last push
|
||||
|
||||
#### $$VERSION$$ v1.21-pre-3-gbbbf57c
|
||||
#### $$VERSION$$ v1.21-pre-45-gfc847c3
|
||||
|
||||
# magic to ensure that we're always inside the root of our application,
|
||||
# no matter from which directory we'll run script
|
||||
@ -17,7 +17,7 @@ fi
|
||||
[ ! -f .git/.lastcommit ] && printf "No previous commit or hooks not installed, use \"git add\" instead ... Abort\n" && exit
|
||||
|
||||
set +f
|
||||
FILES="$(find ./* -newer .git/.lastpush| grep -v -e 'DIST\/' -e 'STANDALONE\/' -e 'JSON.sh')"
|
||||
FILES="$(find ./* -newer .git/.lastcommit| grep -v -e 'DIST\/' -e 'STANDALONE\/' -e 'JSON.sh')"
|
||||
set -f
|
||||
# FILES="$(find ./* -newer .git/.lastpush)"
|
||||
[ "${FILES}" = "" ] && printf "Nothing changed since last commit ...\n" && exit
|
||||
|
@ -7,7 +7,7 @@
|
||||
#
|
||||
# Options: --notest - skip tests
|
||||
#
|
||||
#### $$VERSION$$ v1.21-pre-7-g74dfdd7
|
||||
#### $$VERSION$$ v1.21-pre-45-gfc847c3
|
||||
##############################################################
|
||||
|
||||
# magic to ensure that we're always inside the root of our application,
|
||||
@ -81,4 +81,5 @@ printf "%s Done!\n" "$0"
|
||||
# shellcheck disable=SC2086
|
||||
ls -ld ${DISTNAME}-${VERSION}.*
|
||||
|
||||
|
||||
# an empty DEBUG.log is created ... :-(
|
||||
rm -f "$GIT_DIR/../test/"*.log
|
||||
|
@ -9,7 +9,7 @@
|
||||
# If you your bot is finished you can use make-standalone.sh to create the
|
||||
# the old all-in-one bashbot: bashbot.sh and commands.sh only!
|
||||
#
|
||||
#### $$VERSION$$ v1.21-pre-4-g3193169
|
||||
#### $$VERSION$$ v1.21-pre-45-gfc847c3
|
||||
###################################################################
|
||||
|
||||
# magic to ensure that we're always inside the root of our application,
|
||||
|
Loading…
Reference in New Issue
Block a user