Commit b4876c1a authored by Ilya Rassadin's avatar Ilya Rassadin
Browse files

add security:checker to composer build

parent faace903
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
.run_composer_audit: &run_composer_audit |
  if [ -e $COMPOSER_INSTALL_DIR/composer.lock ];
  then
    php security-checker security:check $COMPOSER_INSTALL_DIR/composer.lock
  fi

.run_composer_install: &run_composer_install |
  if [ -e $COMPOSER_INSTALL_DIR/composer.json ];
  then
@@ -7,10 +13,11 @@

.build_composer:
  stage: build
  image: registry.cetera.su/adm/adm/php_composer:stretch_5
  image: registry.cetera.su/adm/adm/php_composer:stretch_6
  variables:
    COMPOSER_INSTALL_DIR: ${CI_PROJECT_DIR}
  script:
    - *run_composer_audit
    - *run_composer_install
  only:
    refs: