akkounts/.drone.yml
Sebastian Kippe 7ca91cf882
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Don't run caching steps on CI when not master or PR
2020-12-03 14:56:11 +01:00

44 lines
771 B
YAML

kind: pipeline
type: docker
name: CI build
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- vendor
when:
branch:
- master
- name: rspec
image: guildeducation/rails:2.7.1-12.19.0
commands:
- 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
when:
branch:
- master
volumes:
- name: cache
host:
path: /var/lib/drone/tmp