Update Drone CI config

This commit is contained in:
Stefan Kalscheuer 2018-11-11 20:19:02 +01:00
parent de5a043a39
commit 89f33429a2

View File

@ -1,38 +1,24 @@
kind: pipeline
name: default
clone: clone:
git: disable: true
image: plugins/git
depth: 1 steps:
- name: clone
image: plugins/git
settings:
depth: 10
skip_verify: true skip_verify: true
- name: pre-build
pipeline: image: composer
restore-cache: commands:
image: drillster/drone-volume-cache - composer install
restore: true - name: test
mount: image: composer
- vendor commands:
volumes: - ./vendor/bin/robo test
- /var/lib/drone/cache:/cache - name: test-style
cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH ] image: composer
commands:
pre-build: - ./vendor/bin/robo test:cs
image: composer
commands:
- composer install
test:
image: composer
commands:
- ./vendor/bin/robo test
test-style:
image: composer
commands:
- ./vendor/bin/robo test:cs
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- vendor
volumes:
- /var/lib/drone/cache:/cache
cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH ]