Commit 02fe81f1 authored by John Jarvis's avatar John Jarvis
Browse files

Adds shfmt

parent 09eae75c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -35,6 +35,14 @@ test-shellcheck:
  script:
    - shellcheck src/bin/auto-deploy

test-shfmt:
  stage: test
  image:
    name: peterdavehello/shfmt:2.6.4
    entrypoint: ["/bin/sh", "-c"]
  script:
    - shfmt -i 2 -ci -l -d src/bin/*

test-dependencies:
  <<: *test-job
  variables:
+7 −0
Original line number Diff line number Diff line
@@ -2,6 +2,13 @@

The [Auto-DevOps](https://docs.gitlab.com/ee/topics/autodevops/) [deploy stage](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml) image.


## Development

Scripts in this repository follow GitLab's
[shell scripting guide](https://docs.gitlab.com/ee/development/shell_scripting_guide/)
and enforces `shellcheck` and `shfmt`.

## Contributing and Code of Conduct

Please see [CONTRIBUTING.md](CONTRIBUTING.md)
+7 −7
Original line number Diff line number Diff line
@@ -336,8 +336,8 @@ function get_replicas() {
## End Helper functions

option=$1
case $option
in
case $option in

  check_kube_domain) check_kube_domain ;;
  download_chart) download_chart ;;
  ensure_namespace) ensure_namespace ;;