File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
1414sudo -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`
2222sed -i -e ' /^=.*$/s/=/-/g' CHANGELOG.rst
You can’t perform that action at this time.
0 commit comments