Add cache for PHP 7.3 test
This commit is contained in:
parent
7af91bafec
commit
c18622caf9
1 changed files with 33 additions and 3 deletions
36
.drone.yml
36
.drone.yml
|
@ -67,11 +67,36 @@ type: docker
|
||||||
name: php7.3-mariadb
|
name: php7.3-mariadb
|
||||||
|
|
||||||
steps:
|
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
|
- name: Composer install
|
||||||
image: friendicaci/php7.4:php7.4.18
|
image: friendicaci/php7.3:php7.3.28
|
||||||
commands:
|
commands:
|
||||||
- composer validate
|
- export COMPOSER_HOME=.composer
|
||||||
- composer install --prefer-dist
|
- ./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
|
- name: Test Friendica
|
||||||
image: friendicaci/php7.3:php7.3.28
|
image: friendicaci/php7.3:php7.3.28
|
||||||
environment:
|
environment:
|
||||||
|
@ -105,6 +130,11 @@ services:
|
||||||
|
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis
|
image: redis
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /tmp/drone-cache
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
|
Loading…
Reference in a new issue