Skip to content

Commit ccf64d9

Browse files
committed
ci(travis): run shellcheck during lint job [skip ci]
* Automated using myii/ssf-formula#106
1 parent c2fc324 commit ccf64d9

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,21 @@ jobs:
3535
- language: 'node_js'
3636
node_js: 'lts/*'
3737
env: 'Lint'
38-
name: 'Lint: salt-lint, yamllint & commitlint'
38+
name: 'Lint: salt-lint, yamllint, shellcheck & commitlint'
3939
before_install: 'skip'
4040
script:
4141
# Install and run `salt-lint`
4242
- pip install --user salt-lint
43-
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$\|\.tst$'
44-
| xargs salt-lint
43+
- git ls-files -- *.sls *.jinja *.j2 *.tmpl *.tst
44+
| xargs salt-lint
4545
# Install and run `yamllint`
4646
# Need at least `v1.17.0` for the `yaml-files` setting
4747
- pip install --user yamllint>=1.17.0
4848
- yamllint -s .
49+
# Run `shellcheck` (already pre-installed in Travis)
50+
- shellcheck --version
51+
- git ls-files -- *.sh *.bash *.ksh
52+
| xargs shellcheck
4953
# Install and run `commitlint`
5054
- npm i -D @commitlint/config-conventional
5155
@commitlint/travis-cli

pre-commit_semantic-release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
1414
sudo -H pip install m2r
1515

1616
# Copy and then convert the `.md` docs
17-
cp *.md docs/
18-
cd docs/
19-
m2r --overwrite *.md
17+
cp ./*.md docs/
18+
cd docs/ || exit
19+
m2r --overwrite ./*.md
2020

2121
# Change excess `H1` headings to `H2` in converted `CHANGELOG.rst`
2222
sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst

0 commit comments

Comments
 (0)