1
0
Fork 0
mirror of synced 2024-12-21 05:31:09 -05:00

ci(travis): run shellcheck during lint job [skip ci]

* Automated using https://github.com/myii/ssf-formula/pull/106
This commit is contained in:
Imran Iqbal 2019-11-27 20:59:12 +00:00
parent 43cf4c6b45
commit f87c4baa30
2 changed files with 10 additions and 6 deletions

View file

@ -32,13 +32,13 @@ jobs:
- language: 'node_js' - language: 'node_js'
node_js: 'lts/*' node_js: 'lts/*'
env: 'Lint' env: 'Lint'
name: 'Lint: salt-lint, yamllint, rubocop & commitlint' name: 'Lint: salt-lint, yamllint, rubocop, shellcheck & commitlint'
before_install: 'skip' before_install: 'skip'
script: script:
# Install and run `salt-lint` # Install and run `salt-lint`
- pip install --user salt-lint - pip install --user salt-lint
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$\|\.tst$' - git ls-files -- *.sls *.jinja *.j2 *.tmpl *.tst
| xargs salt-lint | xargs salt-lint
# Install and run `yamllint` # Install and run `yamllint`
# Need at least `v1.17.0` for the `yaml-files` setting # Need at least `v1.17.0` for the `yaml-files` setting
- pip install --user yamllint>=1.17.0 - pip install --user yamllint>=1.17.0
@ -46,6 +46,10 @@ jobs:
# Install and run `rubocop` # Install and run `rubocop`
- gem install rubocop - gem install rubocop
- rubocop -d - rubocop -d
# Run `shellcheck` (already pre-installed in Travis)
- shellcheck --version
- git ls-files -- *.sh *.bash *.ksh
| xargs shellcheck
# Install and run `commitlint` # Install and run `commitlint`
- npm i -D @commitlint/config-conventional - npm i -D @commitlint/config-conventional
@commitlint/travis-cli @commitlint/travis-cli

View file

@ -14,9 +14,9 @@ sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
sudo -H pip install m2r sudo -H pip install m2r
# Copy and then convert the `.md` docs # Copy and then convert the `.md` docs
cp *.md docs/ cp ./*.md docs/
cd docs/ cd docs/ || exit
m2r --overwrite *.md m2r --overwrite ./*.md
# Change excess `H1` headings to `H2` in converted `CHANGELOG.rst` # Change excess `H1` headings to `H2` in converted `CHANGELOG.rst`
sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst