Merge pull request 'Cache dependencies on CI' (#6) from chore/cache_bundle_on_ci into master
Reviewed-on: #6
This commit is contained in:
commit
fd2ebc4ad3
25
.drone.yml
25
.drone.yml
|
@ -3,12 +3,35 @@ type: docker
|
|||
name: CI build
|
||||
|
||||
steps:
|
||||
- name: restore-cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- vendor
|
||||
- name: rspec
|
||||
image: guildeducation/rails:2.7.1-12.19.0
|
||||
commands:
|
||||
- bundle install --jobs=3 --retry=3
|
||||
- bundle install --jobs=3 --retry=3 --deployment
|
||||
- yarn install
|
||||
- bundle exec rspec
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
- name: rebuild-cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- vendor
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
path: /var/lib/drone/tmp
|
||||
|
|
Loading…
Reference in New Issue