From c18622caf999e2ddf7e2cda5bf4a50d6506c3931 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 27 May 2021 22:08:39 +0200 Subject: [PATCH] Add cache for PHP 7.3 test --- .drone.yml | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index d49840fdc..beb39fc52 100644 --- a/.drone.yml +++ b/.drone.yml @@ -67,11 +67,36 @@ type: docker name: php7.3-mariadb steps: + - name: Restore cache + image: meltwater/drone-cache:dev + settings: + backend: "filesystem" + restore: true + cache_key: '{{ .Repo.Name }}_php73_{{ arch }}_{{ os }}' + archive_format: "gzip" + mount: + - '.composer' + volumes: + - name: cache + path: /tmp/cache - name: Composer install - image: friendicaci/php7.4:php7.4.18 + image: friendicaci/php7.3:php7.3.28 commands: - - composer validate - - composer install --prefer-dist + - export COMPOSER_HOME=.composer + - ./bin/composer.phar validate + - ./bin/composer.phar install --prefer-dist + - name: Rebuild cache + image: meltwater/drone-cache:dev + settings: + backend: "filesystem" + rebuild: true + cache_key: '{{ .Repo.Name }}_php73_{{ arch }}_{{ os }}' + archive_format: "gzip" + mount: + - '.composer' + volumes: + - name: cache + path: /tmp/cache - name: Test Friendica image: friendicaci/php7.3:php7.3.28 environment: @@ -105,6 +130,11 @@ services: - name: redis image: redis + +volumes: + - name: cache + host: + path: /tmp/drone-cache --- kind: pipeline type: docker