From 3b5e64644b923e8b79e62a7fbf2c79fa24d52487 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 27 May 2021 22:11:47 +0200 Subject: [PATCH] Add cache for PHP 7.4 test --- .drone.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index beb39fc52b..2d24069296 100644 --- a/.drone.yml +++ b/.drone.yml @@ -141,11 +141,36 @@ type: docker name: php7.4-mariadb steps: + - name: Restore cache + image: meltwater/drone-cache:dev + settings: + backend: "filesystem" + restore: true + cache_key: '{{ .Repo.Name }}_php74_{{ arch }}_{{ os }}' + archive_format: "gzip" + mount: + - '.composer' + volumes: + - name: cache + path: /tmp/cache - name: Composer install image: friendicaci/php7.4:php7.4.18 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 }}_php74_{{ arch }}_{{ os }}' + archive_format: "gzip" + mount: + - '.composer' + volumes: + - name: cache + path: /tmp/cache - name: Test Friendica image: friendicaci/php7.4:php7.4.18 environment: