friendica-addons/.drone.yml

72 lines
1.7 KiB
YAML
Raw Normal View History

2021-05-17 15:40:14 -04:00
---
kind: pipeline
type: docker
name: Check messages.po
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:
2021-05-21 16:16:36 -04:00
- 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: Run Xgettext for addons
2021-05-17 15:40:14 -04:00
image: friendicaci/transifex
commands:
2021-05-21 16:16:36 -04:00
- /xgettext-addon.sh
2021-05-17 15:40:14 -04:00
- name: Check update necessary
2021-05-21 16:16:36 -04:00
image: friendicaci/transifex
2021-05-17 15:40:14 -04:00
commands:
2021-05-21 16:16:36 -04:00
- /check-addons.sh
2021-05-22 08:12:19 -04:00
---
kind: pipeline
type: docker
name: php-cs check
clone:
disable: true
trigger:
event:
- pull_request
steps:
- name: Clone friendica base
2021-05-22 08:12:19 -04:00
image: alpine/git
commands:
- git clone https://github.com/friendica/friendica.git .
- git checkout $DRONE_COMMIT_BRANCH
- name: Clone friendica addon
2021-05-22 08:12:19 -04:00
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