Commit 518e8bdc authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

${SHELLCHECK_PARAMETERS}

parent 0ee3d37b
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ stages:
##########################################################################################################

### COMMON SECTION
.common: &common
.common:
  variables:
    GIT_DEPTH: 1
    GIT_SUBMODULE_STRATEGY: recursive
@@ -30,16 +30,16 @@ stages:
### TEST SECTION

shellcheck:
  <<: *common
  extends: common
  stage: shellcheck
  image: registry.cyberbrain.pw/tools/linters/shellcheck
  image: $SHELLCHECK_IMAGE
  script:
    - test -s run.sh && shellcheck -s sh -e SC2068 run.sh || true
    - test -s run.sh && shellcheck ${SHELLCHECK_PARAMETERS} run.sh || true

ansible-lint:
  <<: *common
  extends: common
  stage: ansible-lint
  image: registry.cyberbrain.pw/ansible/ansible
  image: $ANSIBLE_IMAGE
  script:
    - test -s requirements.yml && ansible-galaxy install -r requirements.yml || true
    - test -s deploy.yml && ansible-lint deploy.yml || true