File tree 2 files changed +30
-0
lines changed 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,19 @@ matrix:
20
20
services :
21
21
- docker
22
22
23
+ before_script :
24
+ - |
25
+ if [[ "${TRAVIS_OS_NAME:-}" == 'linux' ]]; then
26
+ sudo apt-get install shellcheck
27
+ fi
28
+
23
29
script :
24
30
- |
31
+ if [[ "${TRAVIS_OS_NAME:-}" == 'linux' ]]; then
32
+ # @todo: Remove "|| true" once all coding standards issues are fixed.
33
+ ./shellcheck.sh || true
34
+ fi
35
+
25
36
if [[ "${TRAVIS_OS_NAME:-}" == 'linux' && -n "${BASHVER}" ]]; then
26
37
docker build --build-arg bashver="${BASHVER}" --tag "bats/bats:bash-${BASHVER}" . &&
27
38
docker run -it "bash:${BASHVER}" --version &&
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ targets=()
6
+ while IFS= read -r -d $' \0' ; do
7
+ targets+=(" $REPLY " )
8
+ done < <(
9
+ find \
10
+ bin/bats \
11
+ libexec/bats-core \
12
+ shellcheck.sh \
13
+ -type f \
14
+ -print0
15
+ )
16
+
17
+ for file in " ${targets[@]} " ; do
18
+ [ -f " ${file} " ] && LC_ALL=C.UTF-8 shellcheck " ${file} "
19
+ done ;
You can’t perform that action at this time.
0 commit comments