Fixup woodpecker

This commit is contained in:
Philipp 2021-12-30 19:26:35 +01:00
parent ff763795a3
commit 05f7e4264c
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 63 additions and 13 deletions

View file

@ -18,12 +18,39 @@ pipeline:
- git merge $CI_COMMIT_SHA - git merge $CI_COMMIT_SHA
when: when:
event: pull_request 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: composer_install:
image: composer image: composer
commands: commands:
- export COMPOSER_HOME=.composer
- ./bin/composer.phar run cs:install - ./bin/composer.phar run cs:install
when: when:
event: pull_request 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: check:
image: friendicaci/php-cs image: friendicaci/php-cs
commands: commands:

View file

@ -3,10 +3,6 @@ matrix:
- PHP_MAJOR_VERSION: 7.4 - PHP_MAJOR_VERSION: 7.4
PHP_VERSION: 7.4.18 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 platform: releaser/release # This prevents executing this pipeline at other servers than ci.friendi.ca
skip_clone: true skip_clone: true
@ -33,6 +29,21 @@ pipeline:
repo: friendica/friendica-addons repo: friendica/friendica-addons
branch: [ develop, '*-rc' ] branch: [ develop, '*-rc' ]
event: push 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: composer_install:
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION} image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
commands: commands:
@ -50,10 +61,10 @@ pipeline:
commands: commands:
- apt-get update - apt-get update
- apt-get install bzip2 - apt-get install bzip2
- mkdir ./build
- export VERSION="$(cat VERSION)" - export VERSION="$(cat VERSION)"
- export RELEASE="friendica-addons-$VERSION" - export RELEASE="friendica-addons-$VERSION"
- export ARTIFACT="$RELEASE.tar.gz" - export ARTIFACT="$RELEASE.tar.gz"
- mkdir ./build
- tar - tar
--exclude='.tx' --exclude='.tx'
--exclude='.git' --exclude='.git'

View file

@ -1,8 +1,5 @@
skip_clone: true skip_clone: true
branches:
exclude: [ stable ]
pipeline: pipeline:
clone_friendica_base: clone_friendica_base:
image: alpine/git image: alpine/git
@ -33,3 +30,6 @@ pipeline:
- /check-addons.sh - /check-addons.sh
when: when:
event: pull_request event: pull_request
branches:
exclude: [ stable ]

View file

@ -3,9 +3,6 @@ matrix:
- PHP_MAJOR_VERSION: 7.4 - PHP_MAJOR_VERSION: 7.4
PHP_VERSION: 7.4.18 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 platform: releaser/release # This prevents executing this pipeline at other servers than ci.friendi.ca
skip_clone: true skip_clone: true
@ -32,18 +29,33 @@ pipeline:
repo: friendica/friendica-addons repo: friendica/friendica-addons
branch: stable branch: stable
event: tag 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: composer_install:
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION} image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
commands: commands:
- export COMPOSER_HOME=.composer - export COMPOSER_HOME=.composer
- composer validate - composer validate
- composer install --no-dev --optimize-autoloader - composer install --no-dev --optimize-autoloader
volumes:
- /etc/hosts:/etc/hosts
when: when:
repo: friendica/friendica-addons repo: friendica/friendica-addons
branch: stable branch: stable
event: tag event: tag
volumes:
- /etc/hosts:/etc/hosts
create_artifacts: create_artifacts:
image: debian image: debian
commands: commands: