Skip to content

ShellCheck Docker image for CI that automatically finds scripts to check.

License

Notifications You must be signed in to change notification settings

Invizory/shellcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShellCheck for CI

ShellCheck Docker image for CI that automatically finds scripts to check.

Usage

Shell

docker run --rm -tv "$(pwd):/source:ro" inviz/shellcheck

Make

.PHONY: shellcheck
shellcheck:
	docker run --rm -tv "$(CURDIR):/source:ro" inviz/shellcheck

GitLab CI

lint-shellcheck:
  stage: lint
  image:
    name: inviz/shellcheck
    entrypoint: ["sh", "-c"]
  script:
    - shellcheck-ci

GitLab CI with JUnit report

lint-shellcheck:
  stage: lint
  image:
    name: inviz/shellcheck
    entrypoint: ["sh", "-c"]
  script:
    - shellcheck-ci --junit > shellcheck.xml
  artifacts:
    when: always
    paths:
      - shellcheck.xml
    reports:
      junit: shellcheck.xml

Copyright

Copyright © 2019–2020 Arthur Khashaev. See license for details.

About

ShellCheck Docker image for CI that automatically finds scripts to check.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published