Test shell script on circleci using shellcheck

Test shell script on circleci using shellcheck

You can test shell script on circleci using shellcheck. You can use the following configuration to install the dependencies and test your shell script using shellcheck.

dependencies:
override:
- sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty-backports main \
  restricted universe"
- sudo apt-get update
- sudo apt-get install -t trusty-backports shellcheck

machine:
ruby:
version: 2.4.1

test:
override:
- shellcheck swap.sh -e SC2039
- sudo sh swap.sh 1G

Reference: shellcheck

Read Also: Coinmon – Check cryptocurrency directly from command line

 

Leave a Reply

Your email address will not be published.


*