aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis-ci.sh
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-03-11 22:23:55 +0100
committercbdev <cb@cbcdn.com>2020-03-11 22:23:55 +0100
commit9ec65119e11941d81a641f6387cdb542b4e8070e (patch)
treedc34000416450f5984d7dcdbbca0e9a0fcd9f0d6 /.travis-ci.sh
parentabb1ffd367f4046d77ac62b0b017b407997bc43b (diff)
downloadmidimonster-9ec65119e11941d81a641f6387cdb542b4e8070e.tar.gz
midimonster-9ec65119e11941d81a641f6387cdb542b4e8070e.tar.bz2
midimonster-9ec65119e11941d81a641f6387cdb542b4e8070e.zip
Refactor installer
Diffstat (limited to '.travis-ci.sh')
-rw-r--r--.travis-ci.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/.travis-ci.sh b/.travis-ci.sh
index 763e558..3b7d7f5 100644
--- a/.travis-ci.sh
+++ b/.travis-ci.sh
@@ -3,10 +3,10 @@
if [ "$TASK" = "spellcheck" ]; then
result=0
# Create list of files to be spellchecked
- spellcheck_files=$(find -type f | grep -v ".git/")
+ spellcheck_files=$(find . -type f | grep -v ".git/")
# Run spellintian to find spelling errors
- sl_results=$(spellintian $spellcheck_files 2>&1)
+ sl_results=$(xargs spellintian 2>&1 <<< "$spellcheck_files")
sl_errors=$(wc -l <<< "$sl_results")
sl_errors_dups=$((grep "\(duplicate word\)" | wc -l) <<< "$sl_results")
@@ -21,7 +21,7 @@ if [ "$TASK" = "spellcheck" ]; then
fi
# Run codespell to find some more
- cs_results=$(codespell --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" $spellcheck_files 2>&1)
+ cs_results=$(xargs codespell --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" <<< "$spellcheck_files" 2>&1)
cs_errors=$(wc -l <<< "$cs_results")
if [ "$cs_errors" -ne 0 ]; then
printf "Codespell found %s errors:\n\n" "$cs_errors"
@@ -100,7 +100,7 @@ else
cp ./backends/*.md ./deployment/docs/
cp -r ./configs ./deployment/
cd ./deployment
- tar czf "midimonster-$(git describe)-$TRAVIS_OS_NAME.tgz" *
+ tar czf "midimonster-$(git describe)-$TRAVIS_OS_NAME.tgz" ./
find . ! -iname '*.tgz' -delete
travis_fold end "deploy_unix"
fi