Procházet zdrojové kódy

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

* Automated using https://github.com/myii/ssf-formula/pull/106
tags/v0.5.1
Imran Iqbal před 5 roky
rodič
revize
fd9aba207e
2 změnil soubory, kde provedl 10 přidání a 6 odebrání
  1. +7
    -3
      .travis.yml
  2. +3
    -3
      pre-commit_semantic-release.sh

+ 7
- 3
.travis.yml Zobrazit soubor

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

+ 3
- 3
pre-commit_semantic-release.sh Zobrazit soubor

@@ -14,9 +14,9 @@ sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
sudo -H pip install m2r

# Copy and then convert the `.md` docs
cp *.md docs/
cd docs/
m2r --overwrite *.md
cp ./*.md docs/
cd docs/ || exit
m2r --overwrite ./*.md

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

Načítá se…
Zrušit
Uložit