Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mysql-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
mysql-formula
Commits
0931835f
Commit
0931835f
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
1a8d914f
No related branches found
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 @
0931835f
...
@@ -32,12 +32,12 @@ jobs:
...
@@ -32,12 +32,12 @@ 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
...
@@ -46,6 +46,10 @@ jobs:
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
pre-commit_semantic-release.sh
+
3
−
3
View file @
0931835f
...
@@ -14,9 +14,9 @@ sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Jan Philipp Timme
@timmej
mentioned in commit
32ac4999
·
5 years ago
mentioned in commit
32ac4999
mentioned in commit 32ac499995c865378a2e21f9377dda3407600b6a
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