Skip to content

Commit

Permalink
ci(travis): run shellcheck during lint job
Browse files Browse the repository at this point in the history
* Automated using myii/ssf-formula#106
  • Loading branch information
myii committed Nov 27, 2019
1 parent 0023587 commit 15ddcac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
name: 'Lint: salt-lint, yamllint, rubocop & commitlint'
before_install: 'skip'
script:
# Run `shellcheck`
- git ls-files | grep '\.sh$\|\.bash$\|\.ksh$'
| xargs shellcheck
# Install and run `salt-lint`
- pip install --user salt-lint
- git ls-files | grep '\.sls$\|\.jinja$\|\.j2$\|\.tmpl$\|\.tst$'
Expand Down
6 changes: 3 additions & 3 deletions pre-commit_semantic-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15ddcac

Please sign in to comment.