From daca28746efd7975cd3fd01caef4e308a5db07c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Tuszy=C5=84ski?= Date: Wed, 14 Nov 2018 20:43:42 +0100 Subject: [PATCH] Configure drone.yaml --- .drone.yaml | 19 ------------------- .drone.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 19 deletions(-) delete mode 100644 .drone.yaml create mode 100644 .drone.yml diff --git a/.drone.yaml b/.drone.yaml deleted file mode 100644 index 8113ee9..0000000 --- a/.drone.yaml +++ /dev/null @@ -1,19 +0,0 @@ -pipeline: - build: - image: ruby:2.2.1 - commands: - - bundle install - - bundle exec rake db:setup - - bundle exec bin/rspec - environment: - - RACK_ENV=test - - DATABASE_HOST=postgres://postgres@database/myapp_test - notify: - image: plugins/slack - secrets: [ slack_webhook ] - when: - status: [ success, failure ] - -services: - database: - image: postgres diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..6d6fd8d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,30 @@ +pipeline: + restore-cache: + image: drillster/drone-volume-cache + restore: true + mount: + - ./.bundle + volumes: + - /tmp/cache:/cache + + build: + image: ruby:2.2.1 + commands: + - bundle install --path=.bundle/gems --without development production staging + - bundle exec rake db:setup + - bundle exec rake test + environment: + - RACK_ENV=test + - DATABASE_URL=postgres://postgres:postgres@database/myapp_test + + rebuild-cache: + image: drillster/drone-volume-cache + rebuild: true + mount: + - ./.bundle + volumes: + - /tmp/cache:/cache + +services: + database: + image: postgres