Add cache for PHP 8.0 test
This commit is contained in:
parent
3b5e64644b
commit
269129ac4f
1 changed files with 28 additions and 3 deletions
31
.drone.yml
31
.drone.yml
|
@ -222,11 +222,36 @@ type: docker
|
||||||
name: php8.0-mariadb
|
name: php8.0-mariadb
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore cache
|
||||||
|
image: meltwater/drone-cache:dev
|
||||||
|
settings:
|
||||||
|
backend: "filesystem"
|
||||||
|
restore: true
|
||||||
|
cache_key: '{{ .Repo.Name }}_php80_{{ 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/php8.0:php8.0.5
|
||||||
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 }}_php80_{{ arch }}_{{ os }}'
|
||||||
|
archive_format: "gzip"
|
||||||
|
mount:
|
||||||
|
- '.composer'
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /tmp/cache
|
||||||
- name: Test Friendica
|
- name: Test Friendica
|
||||||
image: friendicaci/php8.0:php8.0.5
|
image: friendicaci/php8.0:php8.0.5
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue