Loading README.md +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ This job performs a static analysis of your shell scripts using [ShellCheck](htt | Name | description | default value | | ----------------------- | -------------------------------------- | ----------------- | | `BASH_SHELLCHECK_DISABLED` | Set to disable ShellCheck | _none_ (enabled) | | `BASH_SHELLCHECK_DISABLED` | Set to `true` to disable ShellCheck | _none_ (enabled) | | `BASH_SHELLCHECK_IMAGE` | The Docker image used to run [ShellCheck](https://github.com/koalaman/shellcheck) | `koalaman/shellcheck-alpine:stable` | | `BASH_SHELLCHECK_FILES` | Shell file(s) pattern to analyse | `**/*.sh` | | `BASH_SHELLCHECK_OPTS` | ShellCheck [options](https://github.com/koalaman/shellcheck/blob/master/shellcheck.1.md) | _none_ | Loading @@ -34,7 +34,7 @@ The job uses the following variables: | Name | description | default value | | ----------------------- | -------------------------------------- | ----------------- | | `BASH_BATS_ENABLED` | Set to enable bats tests | _none_ (disabled) | | `BASH_BATS_ENABLED` | Set to `true` to enable bats tests | _none_ (disabled) | | `BASH_BATS_IMAGE` | The Docker image used to run [Bats](https://github.com/bats-core/bats-core) | `bats/bats:1.2.1` | | `BASH_BATS_TESTS` | The path to a Bats test file, or the path to a directory containing Bats test files | `tests` | | `BASH_BATS_OPTS` | Bats [options](https://github.com/bats-core/bats-core#usage) | `--formatter junit --output reports` | Loading templates/gitlab-ci-bash.yml +3 −3 Original line number Diff line number Diff line Loading @@ -198,7 +198,7 @@ stages: fi } if [[ -z "$TEMPLATE_CHECK_UPDATE_DISABLED" ]]; then check_for_update bash "1.1.0"; fi if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update bash "1.1.0"; fi unscope_variables # ENDSCRIPT Loading @@ -223,7 +223,7 @@ bash-shellcheck: rules: - if: '$CI_MERGE_REQUEST_ID' when: never - if: '$BASH_SHELLCHECK_DISABLED' - if: '$BASH_SHELLCHECK_DISABLED == "true"' when: never - if: $CI_COMMIT_REF_NAME # useless but prevents GitLab from warning when: on_success Loading @@ -249,6 +249,6 @@ bash-bats: rules: - if: '$CI_MERGE_REQUEST_ID' when: never - if: $BASH_BATS_ENABLED - if: '$BASH_BATS_ENABLED == "true"' when: on_success Loading
README.md +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ This job performs a static analysis of your shell scripts using [ShellCheck](htt | Name | description | default value | | ----------------------- | -------------------------------------- | ----------------- | | `BASH_SHELLCHECK_DISABLED` | Set to disable ShellCheck | _none_ (enabled) | | `BASH_SHELLCHECK_DISABLED` | Set to `true` to disable ShellCheck | _none_ (enabled) | | `BASH_SHELLCHECK_IMAGE` | The Docker image used to run [ShellCheck](https://github.com/koalaman/shellcheck) | `koalaman/shellcheck-alpine:stable` | | `BASH_SHELLCHECK_FILES` | Shell file(s) pattern to analyse | `**/*.sh` | | `BASH_SHELLCHECK_OPTS` | ShellCheck [options](https://github.com/koalaman/shellcheck/blob/master/shellcheck.1.md) | _none_ | Loading @@ -34,7 +34,7 @@ The job uses the following variables: | Name | description | default value | | ----------------------- | -------------------------------------- | ----------------- | | `BASH_BATS_ENABLED` | Set to enable bats tests | _none_ (disabled) | | `BASH_BATS_ENABLED` | Set to `true` to enable bats tests | _none_ (disabled) | | `BASH_BATS_IMAGE` | The Docker image used to run [Bats](https://github.com/bats-core/bats-core) | `bats/bats:1.2.1` | | `BASH_BATS_TESTS` | The path to a Bats test file, or the path to a directory containing Bats test files | `tests` | | `BASH_BATS_OPTS` | Bats [options](https://github.com/bats-core/bats-core#usage) | `--formatter junit --output reports` | Loading
templates/gitlab-ci-bash.yml +3 −3 Original line number Diff line number Diff line Loading @@ -198,7 +198,7 @@ stages: fi } if [[ -z "$TEMPLATE_CHECK_UPDATE_DISABLED" ]]; then check_for_update bash "1.1.0"; fi if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update bash "1.1.0"; fi unscope_variables # ENDSCRIPT Loading @@ -223,7 +223,7 @@ bash-shellcheck: rules: - if: '$CI_MERGE_REQUEST_ID' when: never - if: '$BASH_SHELLCHECK_DISABLED' - if: '$BASH_SHELLCHECK_DISABLED == "true"' when: never - if: $CI_COMMIT_REF_NAME # useless but prevents GitLab from warning when: on_success Loading @@ -249,6 +249,6 @@ bash-bats: rules: - if: '$CI_MERGE_REQUEST_ID' when: never - if: $BASH_BATS_ENABLED - if: '$BASH_BATS_ENABLED == "true"' when: on_success