Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Prada Sarasola, Miguel
templates
Commits
3eed0b96
Commit
3eed0b96
authored
Oct 08, 2020
by
Jon Azpiazu
Browse files
Change sh/bash script checking to use shellcheck
parent
70ac04ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-industrial-ci-kinetic-no-rosinstall.yml
View file @
3eed0b96
...
...
@@ -105,18 +105,21 @@ python_syntax:
##########################################################
## Check for errors in bash/sh scripts
## Uses https://github.com/
cytopia/awesome-ci
## Uses https://github.com/
koalaman/shellcheck
##########################################################
bash_syntax
:
before_script
:
-
apk add --update shellcheck
stage
:
postcheck
script
:
-
RET=0
-
docker run -v ${PWD}:/ac cytopia/awesome-ci syntax-sh --path=/ac --extension=sh --ignore=.ci_config || RET=1
-
docker run -v ${PWD}:/ac cytopia/awesome-ci syntax-
bash -
-path=/ac --extension=bash --ignore=.ci_config || RET=1
-
find . -type f -name '*.sh' -exec shellcheck -s sh {} \;
-
find . -type f -name '*.
bash
'
-
exec shellcheck -s bash {} \;
-
exit $RET
when
:
always
tags
:
-
docker
allow_failure
:
yes
##########################################################
## Check for errors in markdown files
...
...
.gitlab-industrial-ci-kinetic-with-rosinstall.yml
View file @
3eed0b96
...
...
@@ -107,18 +107,21 @@ python_syntax:
##########################################################
## Check for errors in bash/sh scripts
## Uses https://github.com/
cytopia/awesome-ci
## Uses https://github.com/
koalaman/shellcheck
##########################################################
bash_syntax
:
before_script
:
-
apk add --update shellcheck
stage
:
postcheck
script
:
-
RET=0
-
docker run -v ${PWD}:/ac cytopia/awesome-ci syntax-sh --path=/ac --extension=sh --ignore=.ci_config || RET=1
-
docker run -v ${PWD}:/ac cytopia/awesome-ci syntax-
bash -
-path=/ac --extension=bash --ignore=.ci_config || RET=1
-
find . -type f -name '*.sh' -exec shellcheck -s sh {} \;
-
find . -type f -name '*.
bash
'
-
exec shellcheck -s bash {} \;
-
exit $RET
when
:
always
tags
:
-
docker
allow_failure
:
yes
##########################################################
## Check for errors in markdown files
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment