]> git.mxchange.org Git - friendica.git/blob - .woodpecker/.code_standards_check.yml
Fix a problem with MySQL
[friendica.git] / .woodpecker / .code_standards_check.yml
1 steps:
2   restore_cache:
3     image: meltwater/drone-cache:dev
4     settings:
5       backend: "filesystem"
6       restore: true
7       cache_key: '{{ .Repo.Name }}_phpcs_{{ arch }}_{{ os }}'
8       archive_format: "gzip"
9       mount:
10         - '.composer'
11     volumes:
12       - /tmp/drone-cache:/tmp/cache
13   composer_install:
14     image: composer
15     commands:
16       - export COMPOSER_HOME=.composer
17       - ./bin/composer.phar run cs:install
18   rebuild_cache:
19     image: meltwater/drone-cache:dev
20     settings:
21       backend: "filesystem"
22       rebuild: true
23       cache_key: '{{ .Repo.Name }}_phpcs_{{ arch }}_{{ os }}'
24       archive_format: "gzip"
25       mount:
26         - '.composer'
27     volumes:
28       - /tmp/drone-cache:/tmp/cache
29   check:
30     image: friendicaci/php-cs
31     commands:
32       - if [ ! -z "$${CI_COMMIT_PULL_REQUEST}" ]; then
33           git fetch --no-tags origin ${CI_COMMIT_TARGET_BRANCH};
34           export CHANGED_FILES="$(git diff --name-status $(git merge-base FETCH_HEAD origin/${CI_COMMIT_TARGET_BRANCH})..${CI_COMMIT_SHA} | grep ^A | cut -f2)";
35         else
36           export CHANGED_FILES="$(git diff --name-status ${CI_COMMIT_SHA} | grep ^A | cut -f2)";
37         fi
38       - /check-php-cs.sh