Skip to content
Snippets Groups Projects
Commit 2895785a authored by Prada Sarasola, Miguel's avatar Prada Sarasola, Miguel
Browse files

Check both bash and sh script syntax

parent 2f19e3b1
No related branches found
No related tags found
No related merge requests found
......@@ -37,12 +37,16 @@ python_syntax:
when: always
##########################################################
## Check for errors in bash scripts
## Check for errors in bash/sh scripts
## Uses https://github.com/cytopia/awesome-ci
##########################################################
bash_syntax:
stage: postcheck
script: docker run -v ${PWD}:/ac cytopia/awesome-ci syntax-sh --path=/ac --extension=sh --ignore=.ci_config
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
- exit $RET
allow_failure: yes
when: always
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment