7 - git clone https://github.com/friendica/friendica.git .
8 - git checkout $CI_COMMIT_BRANCH
11 clone_friendica_addon:
14 - git config --global user.email "no-reply@friendi.ca"
15 - git config --global user.name "Friendica"
16 - git clone $CI_REPO_LINK addon
18 - git checkout $CI_COMMIT_BRANCH
19 - git fetch origin $CI_COMMIT_REF
20 - git merge $CI_COMMIT_SHA
24 image: meltwater/drone-cache:dev
28 cache_key: '{{ .Repo.Name }}_phpcs_{{ arch }}_{{ os }}'
29 archive_format: "gzip"
33 - /tmp/drone-cache:/tmp/cache
39 - export COMPOSER_HOME=.composer
40 - ./bin/composer.phar run cs:install
44 image: meltwater/drone-cache:dev
48 cache_key: '{{ .Repo.Name }}_phpcs_{{ arch }}_{{ os }}'
49 archive_format: "gzip"
53 - /tmp/drone-cache:/tmp/cache
57 image: friendicaci/php-cs
60 - if [ ! -z "$${CI_COMMIT_PULL_REQUEST}" ]; then
61 git fetch --no-tags origin ${CI_COMMIT_TARGET_BRANCH};
62 export CHANGED_FILES="$(git diff --name-status $(git merge-base FETCH_HEAD origin/${CI_COMMIT_TARGET_BRANCH})..${CI_COMMIT_SHA} | grep ^A | cut -f2 | sed -e "s/^/addon\\//")";
64 export CHANGED_FILES="$(git diff --name-status ${CI_COMMIT_SHA} | grep ^A | cut -f2 | sed -e "s/^/addon\\//")";