Skip to content

Commit 52e2299

Browse files
committed
test: install shellcheck and lint Shell scripts
1 parent e932511 commit 52e2299

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.travis.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
language: bash
22
before_install:
33
- git clone --depth 1 https://github.com/sstephenson/bats.git
4-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install gnu-sed; fi
5-
4+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
5+
brew update;
6+
brew install gnu-sed;
7+
brew install shellcheck;
8+
fi
9+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
10+
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-backports restricted main universe";
11+
sudo apt-get -y update;
12+
sudo apt-get -y install shellcheck;
13+
fi
614
script:
715
- ./bats/bin/bats test/*.bats
16+
- shellcheck diff-so-fancy update-deps.sh
817
os:
918
- linux
1019
- osx

0 commit comments

Comments
 (0)