Commit c48d5854 authored by Дмитрий Сафронов's avatar Дмитрий Сафронов
Browse files

Merge branch 'trunk' into 'master'

${SHELLCHECK_PARAMETERS}

See merge request tools/continuous-integration/infrastructure/system-configurations!4
parents f221990a 518e8bdc
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