Skip to content

Instantly share code, notes, and snippets.

@andypost
Created May 21, 2018 13:34
Show Gist options
  • Save andypost/e008f24ff3c03aac336bf130e0360c9e to your computer and use it in GitHub Desktop.
Save andypost/e008f24ff3c03aac336bf130e0360c9e to your computer and use it in GitHub Desktop.
base sniffers
image: skilldlabs/php:72
variables:
GIT_DEPTH: "3"
before_script:
- date
- pwd
stages:
- sniffers
sniffers:phpcs:
stage: sniffers
image: skilldlabs/docker-phpcs-drupal
script:
- phpcs -s --colors
--standard=Drupal,DrupalPractice
--extensions=js
--ignore=*.css,*.md,libraries/*,styleguide/*,web/themes/bootstrap/*
web/modules/custom
web/profiles
web/themes
- phpcs -s --colors
--standard=Drupal,DrupalPractice
--extensions=php,module,inc,install,profile,theme,yml
--ignore=*.css,*.md,*.js,libraries/*,styleguide/*,web/themes/bootstrap/*
web/modules/custom
web/profiles
web/themes
sniffers:sonarqube:
stage: sniffers
image: newtmitch/sonar-scanner:3
script:
- sonar-scanner
-Dsonar.projectKey=$CI_PROJECT_PATH_SLUG
-Dsonar.projectName=$CI_PROJECT_NAME
-Dsonar.host.url=${SONAR_HOST}
-Dsonar.login=${SONAR_TOKEN}
-Dsonar.projectBaseDir=.
-Dsonar.sources=.
-Dsonar.inclusions=settings/**,web/modules/custom/**,web/profiles/sdd/**,web/themes/custom/**
only:
- integration-sonar
- master
when: manual
@mbaev
Copy link

mbaev commented May 22, 2018

This is looks like CI for test of Drupal non-core code, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment