Use koalaman/shellcheck:latest
This commit is contained in:
parent
dd589f180b
commit
ccb8e74998
@ -16,14 +16,12 @@ elif [[ $TESTENV == eslint ]]; then
|
|||||||
eslint --color --report-unused-disable-directives .
|
eslint --color --report-unused-disable-directives .
|
||||||
elif [[ $TESTENV == shellcheck ]]; then
|
elif [[ $TESTENV == shellcheck ]]; then
|
||||||
dev_scripts=$( find scripts/dev/ -name '*.sh' -print0 | xargs -0 )
|
dev_scripts=$( find scripts/dev/ -name '*.sh' -print0 | xargs -0 )
|
||||||
# false positive: we are using 'find -exec +'
|
|
||||||
# shellcheck disable=SC2038
|
|
||||||
userscripts=$( find misc/userscripts/ -type f -exec grep -lE '[/ ][bd]ash$|[/ ]sh$|[/ ]ksh$' {} + | xargs )
|
userscripts=$( find misc/userscripts/ -type f -exec grep -lE '[/ ][bd]ash$|[/ ]sh$|[/ ]ksh$' {} + | xargs )
|
||||||
IFS=" " read -r -a scripts <<< "$dev_scripts $userscripts"
|
IFS=" " read -r -a scripts <<< "$dev_scripts $userscripts"
|
||||||
docker run \
|
docker run \
|
||||||
-v "$PWD:/outside" \
|
-v "$PWD:/outside" \
|
||||||
-w /outside \
|
-w /outside \
|
||||||
koalaman/shellcheck:stable "${scripts[@]}"
|
koalaman/shellcheck:latest "${scripts[@]}"
|
||||||
else
|
else
|
||||||
args=()
|
args=()
|
||||||
[[ $TRAVIS_OS_NAME == osx ]] && args=('--qute-bdd-webengine' '--no-xvfb')
|
[[ $TRAVIS_OS_NAME == osx ]] && args=('--qute-bdd-webengine' '--no-xvfb')
|
||||||
|
Loading…
Reference in New Issue
Block a user