forked from friendica/friendica-addons
Merge pull request #1123 from nupplaphil/feat/drone_php-cs
Add PHP-CS check
This commit is contained in:
commit
1aeb073aa4
37
.drone.yml
37
.drone.yml
|
@ -32,3 +32,40 @@ steps:
|
||||||
image: friendicaci/transifex
|
image: friendicaci/transifex
|
||||||
commands:
|
commands:
|
||||||
- /check-addons.sh
|
- /check-addons.sh
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: php-cs check
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Clone friendica base
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git clone https://github.com/friendica/friendica.git .
|
||||||
|
- git checkout $DRONE_COMMIT_BRANCH
|
||||||
|
- name: Clone friendica addon
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git clone $DRONE_REPO_LINK addon
|
||||||
|
- cd addon/
|
||||||
|
- git checkout $DRONE_COMMIT_BRANCH
|
||||||
|
- git fetch origin $DRONE_COMMIT_REF
|
||||||
|
- git merge $DRONE_COMMIT_SHA
|
||||||
|
- name: Install dependencies
|
||||||
|
image: composer
|
||||||
|
commands:
|
||||||
|
- ./bin/composer.phar run cs:install
|
||||||
|
- name: Run coding standards check
|
||||||
|
image: friendicaci/php-cs
|
||||||
|
commands:
|
||||||
|
- cd addon/
|
||||||
|
- export CHANGED_FILES="$(git diff --name-status ${DRONE_COMMIT_BEFORE}..${DRONE_COMMIT_AFTER} | grep ^A | cut -f2 | sed -e "s/^/addon\\//")"
|
||||||
|
- cd ../
|
||||||
|
- /check-php-cs.sh
|
||||||
|
|
Loading…
Reference in a new issue