Browse Source

Simplify drone config with official drone docs

tags/0.8.0^2
Bèr Kessels 2 years ago
parent
commit
17308b9be8
1 changed files with 7 additions and 27 deletions
  1. 7
    27
      .drone.yml

+ 7
- 27
.drone.yml View File

@@ -1,32 +1,12 @@
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- ./bundle
volumes:
- /tmp/cache:/cache
kind: pipeline
name: default

build:
image: juicymo/drone-ruby:2.5.3
steps:
- name: test
image: ruby:2.5.0
environment:
- RAILS_ENV=test
RAILS_ENV: test
commands:
- bundle install --path ./bundle --without production,development

rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- ./bundle
volumes:
- /tmp/cache:/cache

test:
image: juicymo/drone-ruby:2.5.3
environment:
- RAILS_ENV=test
commands:
- bundle install --path ./bundle --without production,development
- bundle install --without production,development
- bundle exec rake test_app
- bundle exec spec

Loading…
Cancel
Save