Merge pull request #2843 from tridactyl/ci_shellcheck_check

Fix #2810: run shellcheck if it is installed
This commit is contained in:
Oliver Blanthorn 2020-09-28 11:58:09 +01:00 committed by GitHub
commit 78acbdffa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
cd ${0%/*}/..
if ! [ -x "$(command -v shellcheck)" ]; then
GLOBIGNORE="node_modules" shellcheck -e2012 **/*.sh
cd "${0%/*}"/.. || exit 1
if [ -x "$(command -v shellcheck)" ]; then
GLOBIGNORE="node_modules" shellcheck -e2012 ./**/*.sh
else
echo "Warning: shellcheck is not installed, skipping shell scripts"
fi

View file

@ -1,4 +1,4 @@
#! /bin/sh
yarn run build --no-native
cd ${0%/*}/../build
cd "${0%/*}"/../build || exit 1
"$(yarn bin)/web-ext" lint

View file

@ -1,4 +1,4 @@
#! /bin/sh
cd ${0%/*}
cd "${0%/*}" || exit
yarn run build --no-native
"$(yarn bin)/jest" src