Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
users-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
users-formula
Commits
e09c8221
Commit
e09c8221
authored
5 years ago
by
Imran Iqbal
Browse files
Options
Downloads
Patches
Plain Diff
ci(travis): run `shellcheck` during lint job [skip ci]
* Automated using
https://github.com/myii/ssf-formula/pull/106
parent
9a983a4c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+7
-3
7 additions, 3 deletions
.travis.yml
pre-commit_semantic-release.sh
+3
-3
3 additions, 3 deletions
pre-commit_semantic-release.sh
with
10 additions
and
6 deletions
.travis.yml
+
7
−
3
View file @
e09c8221
...
...
@@ -32,12 +32,12 @@ jobs:
-
language
:
'
node_js'
node_js
:
'
lts/*'
env
:
'
Lint'
name
:
'
Lint:
salt-lint,
yamllint,
rubocop
&
commitlint'
name
:
'
Lint:
salt-lint,
yamllint,
rubocop
,
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
$'
-
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
...
...
@@ -46,6 +46,10 @@ jobs:
# Install and run `rubocop`
-
gem install rubocop
-
rubocop -d
# 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
...
...
This diff is collapsed.
Click to expand it.
pre-commit_semantic-release.sh
+
3
−
3
View file @
e09c8221
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Dennis Ahrens
@ahrensde
mentioned in commit
b5aac779
·
3 years ago
mentioned in commit
b5aac779
mentioned in commit b5aac7797cf8df7a086d001d271e07179c40a9ff
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment