mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-29 05:02:46 +00:00
skip tests with --notest
This commit is contained in:
parent
eedd0b3ab3
commit
8c9298d548
@ -1,8 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# file: make-distribution.sh
|
##############################################################
|
||||||
# creates files and arcchives to dirtribute bashbot
|
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.20-0-g2ab00a2
|
# File: make-distribution.sh
|
||||||
|
#
|
||||||
|
# Description: creates files and arcchives to distribute bashbot
|
||||||
|
#
|
||||||
|
# Options: --notest - skip tests
|
||||||
|
#
|
||||||
|
#### $$VERSION$$ v1.21-dev-16-geedd0b3
|
||||||
|
##############################################################
|
||||||
|
|
||||||
# magic to ensure that we're always inside the root of our application,
|
# magic to ensure that we're always inside the root of our application,
|
||||||
# no matter from which directory we'll run script
|
# no matter from which directory we'll run script
|
||||||
@ -21,9 +27,9 @@ DISTDIR="./DIST/${DISTNAME}"
|
|||||||
DISTFILES="bashbot.rc bashbot.sh commands.sh mycommands.sh mycommands.sh.clean bin doc examples scripts modules addons LICENSE README.md README.txt README.html"
|
DISTFILES="bashbot.rc bashbot.sh commands.sh mycommands.sh mycommands.sh.clean bin doc examples scripts modules addons LICENSE README.md README.txt README.html"
|
||||||
|
|
||||||
# run tests first!
|
# run tests first!
|
||||||
|
for test in $1 dev/all-test*.sh
|
||||||
for test in dev/all-test*.sh
|
|
||||||
do
|
do
|
||||||
|
[[ "${test}" == "--notest"* ]] && break
|
||||||
[ ! -x "${test}" ] && continue
|
[ ! -x "${test}" ] && continue
|
||||||
if ! "${test}" ; then
|
if ! "${test}" ; then
|
||||||
echo "Test ${test} failed, can't create dist!"
|
echo "Test ${test} failed, can't create dist!"
|
||||||
|
@ -17,7 +17,7 @@ bash -c 'if eval "a[1]=1"; then echo "Shell support arrays..."; else echo "Shell
|
|||||||
# check for bash version by feature
|
# check for bash version by feature
|
||||||
bash -c 'if [ "$(echo -e "\u1111")" != "\u1111" ]; then echo "Bash version ok ..."; else echo "Bash version may to old ..."; fi'
|
bash -c 'if [ "$(echo -e "\u1111")" != "\u1111" ]; then echo "Bash version ok ..."; else echo "Bash version may to old ..."; fi'
|
||||||
|
|
||||||
# display bash version, must be greater thane 4.3
|
# display bash version, must be greater than 4.3
|
||||||
bash --version | grep "bash"
|
bash --version | grep "bash"
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ Note: If you are not using the zip / tar archive, you must install `JSON.awk` ma
|
|||||||
### Install bashbot from git repo
|
### Install bashbot from git repo
|
||||||
|
|
||||||
Installation and Updates should be done using the zip / tar archives provided on github to avoid
|
Installation and Updates should be done using the zip / tar archives provided on github to avoid
|
||||||
problems and overwriting your bot config and `mycommands.sh`.
|
problems and not overwriting your bot config and `mycommands.sh`.
|
||||||
|
|
||||||
Nevertheless you can install or update bashbot from a git repo, see next chapter ...
|
Nevertheless you can install or update bashbot from a git repo, see next chapter ...
|
||||||
|
|
||||||
@ -87,10 +87,11 @@ To install or update bashbot from a git repo you must create the archives yours
|
|||||||
1. Run `git clone https://github.com/topkecleon/telegram-bot-bash.git`
|
1. Run `git clone https://github.com/topkecleon/telegram-bot-bash.git`
|
||||||
2. Change into the directory `telegram-bot-bash`
|
2. Change into the directory `telegram-bot-bash`
|
||||||
3. Run ` git checkout develop` (_otional, for latest dev version_)
|
3. Run ` git checkout develop` (_otional, for latest dev version_)
|
||||||
4. Run ` dev/make-distribution.sh`
|
4. Run ` dev/make-distribution.sh` (_add option --notest to skip tests_)
|
||||||
5. If no errors occur you'll find archives and a bashbot installation in directory DIST
|
5. You'll find archives and a bashbot installation in directory DIST
|
||||||
|
6. install or update abshbot using one of the archives (optional)
|
||||||
|
|
||||||
*Note*: You can update the basbot installation in `DIST/telegram-bot-bash` with `git pull; dev/make-distrubition.sh` to get the latest updates.
|
*Note*: You can update the basbot installation in `DIST/telegram-bot-bash` with `git pull; dev/make-distrubition.sh --notest` to get the latest updates.
|
||||||
|
|
||||||
|
|
||||||
### Note for BSD and MacOS
|
### Note for BSD and MacOS
|
||||||
@ -126,5 +127,5 @@ You must update to [Version 1.20](https://github.com/topkecleon/telegram-bot-bas
|
|||||||
|
|
||||||
#### [Next Create Bot](1_firstbot.md)
|
#### [Next Create Bot](1_firstbot.md)
|
||||||
|
|
||||||
#### $$VERSION$$ v1.21-dev-15-ga1f7215
|
#### $$VERSION$$ v1.21-dev-16-geedd0b3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user