Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Add drone with codestyle check #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
kind: pipeline
name: default

clone:
depth: 42

steps:
- name: composer
image: joomlaprojects/docker-tools:develop
commands:
- composer validate --no-check-all --strict
- composer install --no-progress --no-suggest
- name: phpcs
image: joomlaprojects/docker-images:php7.2
commands:
- echo $(date)
- ./vendor/bin/phpcs --report=full --encoding=utf-8 --extensions=php -p --standard=./vendor/joomla/coding-standards/Joomla ./src
- echo $(date)
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name" : "joomla-extensions/testing-sample-data",
"description": "Joomla Testing sample data plugin.",
"license" : "GPL-2.0-or-later",
"config": {
"platform": {
"php": "7.2.23"
}
},
"require" : {
"php": ">=7.2.0"
},
"require-dev": {
"joomla/cms-coding-standards": "~2.0.0-alpha2@dev",
"joomla/coding-standards": "~3.0@dev",
"friendsofphp/php-cs-fixer": "~2.12",
"squizlabs/php_codesniffer": "~3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0"
}
}
Loading