D
D
Danil Antoshkin2017-09-20 07:00:58
GitHub
Danil Antoshkin, 2017-09-20 07:00:58

What is the right way to use Travis CI in this case?

Good afternoon, at the moment we are writing a project in Bash and decided that we need to test script
1. This is a syntax check and the presence of errors in the code
bash -n myscript.sh
Bash already has a syntax check built in, but there is an option to use ShellCheck, but there is a small problem
Even if there are no errors in the syntax it sets the status "failed"
This is the most ideal option, but how to make it set "failed" when there are errors in the syntax, and not just his recommendations?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question