Update Drone CI config
This commit is contained in:
parent
de5a043a39
commit
89f33429a2
58
.drone.yml
58
.drone.yml
@ -1,38 +1,24 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git
|
||||
depth: 1
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: clone
|
||||
image: plugins/git
|
||||
settings:
|
||||
depth: 10
|
||||
skip_verify: true
|
||||
|
||||
pipeline:
|
||||
restore-cache:
|
||||
image: drillster/drone-volume-cache
|
||||
restore: true
|
||||
mount:
|
||||
- vendor
|
||||
volumes:
|
||||
- /var/lib/drone/cache:/cache
|
||||
cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH ]
|
||||
|
||||
pre-build:
|
||||
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 ]
|
||||
- name: pre-build
|
||||
image: composer
|
||||
commands:
|
||||
- composer install
|
||||
- name: test
|
||||
image: composer
|
||||
commands:
|
||||
- ./vendor/bin/robo test
|
||||
- name: test-style
|
||||
image: composer
|
||||
commands:
|
||||
- ./vendor/bin/robo test:cs
|
||||
|
Loading…
x
Reference in New Issue
Block a user