Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tecnalia_robotics-public
templates
Merge requests
!51
Resolve "Improve script checking"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Improve script checking"
26-improve-script-checking
into
master
Overview
4
Commits
2
Pipelines
3
Changes
2
Merged
Jon Azpiazu
requested to merge
26-improve-script-checking
into
master
4 years ago
Overview
4
Commits
2
Pipelines
3
Changes
2
Closes
#26 (closed)
Edited
4 years ago
by
Jon Azpiazu
0
0
Merge request reports
Compare
master
version 1
3eed0b96
4 years ago
master (base)
and
latest version
latest version
43d3513e
2 commits,
4 years ago
version 1
3eed0b96
1 commit,
4 years ago
2 files
+
12
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
.gitlab-industrial-ci-kinetic-no-rosinstall.yml
+
6
−
3
View file @ 43d3513e
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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 {} +
|| RET=1
-
find . -type f -name '*.
bash
'
-
exec shellcheck -s bash {} +
|| RET=1
-
exit $RET
when
:
always
tags
:
-
docker
allow_failure
:
yes
##########################################################
## Check for errors in markdown files
Loading