- git merge $CI_COMMIT_SHA
when:
event: pull_request
+ 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
+ when:
+ event: pull_request
composer_install:
image: composer
commands:
+ - export COMPOSER_HOME=.composer
- ./bin/composer.phar run cs:install
when:
event: pull_request
+ 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
+ when:
+ event: pull_request
check:
image: friendicaci/php-cs
commands:
- PHP_MAJOR_VERSION: 7.4
PHP_VERSION: 7.4.18
-depends_on:
- - code_standards_check
- - messages.po_check
-
platform: releaser/release # This prevents executing this pipeline at other servers than ci.friendi.ca
skip_clone: true
repo: friendica/friendica-addons
branch: [ develop, '*-rc' ]
event: push
+ restore_cache:
+ image: meltwater/drone-cache:dev
+ settings:
+ backend: "filesystem"
+ restore: true
+ cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
+ archive_format: "gzip"
+ mount:
+ - '.composer'
+ volumes:
+ - /tmp/drone-cache:/tmp/cache
+ when:
+ repo: friendica/friendica-addons
+ branch: [ develop, '*-rc' ]
+ event: push
composer_install:
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
commands:
commands:
- apt-get update
- apt-get install bzip2
+ - mkdir ./build
- export VERSION="$(cat VERSION)"
- export RELEASE="friendica-addons-$VERSION"
- export ARTIFACT="$RELEASE.tar.gz"
- - mkdir ./build
- tar
--exclude='.tx'
--exclude='.git'
skip_clone: true
-branches:
- exclude: [ stable ]
-
pipeline:
clone_friendica_base:
image: alpine/git
- /check-addons.sh
when:
event: pull_request
+
+branches:
+ exclude: [ stable ]
\ No newline at end of file
- PHP_MAJOR_VERSION: 7.4
PHP_VERSION: 7.4.18
-depends_on:
- - code_standards_check
-
platform: releaser/release # This prevents executing this pipeline at other servers than ci.friendi.ca
skip_clone: true
repo: friendica/friendica-addons
branch: stable
event: tag
+ restore_cache:
+ image: meltwater/drone-cache:dev
+ settings:
+ backend: "filesystem"
+ restore: true
+ cache_key: "{{ .Repo.Name }}_php${PHP_MAJOR_VERSION}_{{ arch }}_{{ os }}"
+ archive_format: "gzip"
+ mount:
+ - '.composer'
+ volumes:
+ - /tmp/drone-cache:/tmp/cache
+ when:
+ repo: friendica/friendica-addons
+ branch: stable
+ event: tag
composer_install:
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
commands:
- export COMPOSER_HOME=.composer
- composer validate
- composer install --no-dev --optimize-autoloader
- volumes:
- - /etc/hosts:/etc/hosts
when:
repo: friendica/friendica-addons
branch: stable
event: tag
+ volumes:
+ - /etc/hosts:/etc/hosts
create_artifacts:
image: debian
commands: