Created
May 21, 2018 13:34
-
-
Save andypost/e008f24ff3c03aac336bf130e0360c9e to your computer and use it in GitHub Desktop.
base sniffers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is looks like CI for test of Drupal non-core code, right?