3 image: meltwater/drone-cache:dev
7 cache_key: '{{ .Repo.Name }}_phpcs_{{ arch }}_{{ os }}'
12 - /tmp/drone-cache:/tmp/cache
16 - export COMPOSER_HOME=.composer
17 - ./bin/composer.phar run cs:install
19 image: meltwater/drone-cache:dev
23 cache_key: '{{ .Repo.Name }}_phpcs_{{ arch }}_{{ os }}'
24 archive_format: "gzip"
28 - /tmp/drone-cache:/tmp/cache
30 image: friendicaci/php-cs
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)";
36 export CHANGED_FILES="$(git diff --name-status ${CI_COMMIT_SHA} | grep ^A | cut -f2)";