Merge pull request #1225 from nupplaphil/bug/woodpecker

Fixup woodpecker
This commit is contained in:
Tobias Diekershoff 2021-12-30 20:07:58 +01:00 committed by GitHub
commit 1b87105bb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 63 additions and 13 deletions

View file

@ -18,12 +18,39 @@ pipeline:
- 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:

View file

@ -3,10 +3,6 @@ matrix:
- 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
@ -33,6 +29,21 @@ pipeline:
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:
@ -50,10 +61,10 @@ pipeline:
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'

View file

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

View file

@ -3,9 +3,6 @@ matrix:
- 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
@ -32,18 +29,33 @@ pipeline:
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: