mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
f19b14bd88
In the end of this progress Friendica will hopefully be [REUSE](https://reuse.software) complient but this is a longterm goal.
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
# SPDX-FileCopyrightText: 2010 - 2024 the Friendica project
|
|
#
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
steps:
|
|
restore_cache:
|
|
image: meltwater/drone-cache:dev
|
|
settings:
|
|
backend: "filesystem"
|
|
restore: true
|
|
cache_key: '{{ .Repo.Name }}_phpcs_{{ arch }}_{{ os }}'
|
|
archive_format: "gzip"
|
|
mount:
|
|
- '.composer'
|
|
volumes:
|
|
- /tmp/drone-cache:/tmp/cache
|
|
composer_install:
|
|
image: composer
|
|
commands:
|
|
- export COMPOSER_HOME=.composer
|
|
- ./bin/composer.phar run cs:install
|
|
rebuild_cache:
|
|
image: meltwater/drone-cache:dev
|
|
settings:
|
|
backend: "filesystem"
|
|
rebuild: true
|
|
cache_key: '{{ .Repo.Name }}_phpcs_{{ arch }}_{{ os }}'
|
|
archive_format: "gzip"
|
|
mount:
|
|
- '.composer'
|
|
volumes:
|
|
- /tmp/drone-cache:/tmp/cache
|
|
check:
|
|
image: friendicaci/php-cs
|
|
commands:
|
|
- if [ ! -z "$${CI_COMMIT_PULL_REQUEST}" ]; then
|
|
git fetch --no-tags origin ${CI_COMMIT_TARGET_BRANCH};
|
|
export CHANGED_FILES="$(git diff --name-status $(git merge-base FETCH_HEAD origin/${CI_COMMIT_TARGET_BRANCH})..${CI_COMMIT_SHA} | grep ^A | cut -f2)";
|
|
else
|
|
export CHANGED_FILES="$(git diff --name-status ${CI_COMMIT_SHA} | grep ^A | cut -f2)";
|
|
fi
|
|
- /check-php-cs.sh
|