Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am balser on github.
  • I am balser (https://keybase.io/balser) on keybase.
  • I have a public key ASC_pkQd2Kq4OaRNvnfeQSSfU1FxqOENk4Bs2LHnN0L9-wo

To claim this, I am signing this object:

$ git clone --depth=50 --recursive --branch=master git@github.com:balser/drone-rails-pg.git /var/cache/drone/src/github.com/balser/drone-rails-pg
Cloning into '/var/cache/drone/src/github.com/balser/drone-rails-pg'...
Warning: Permanently added 'github.com,192.30.252.131' (RSA) to the list of known hosts.
$ git checkout -qf f7482e3b2d9386eb601305fec58ac552d94570d2
$ bundle install --quiet
$ cp config/drone.database.yml config/database.yml
$ psql -c 'create database test;' -U postgres -h 127.0.0.1
CREATE DATABASE
$ bin/rake db:schema:load
*** drone logging initialized ***
@balser
balser / .drone.yml
Last active December 18, 2019 13:34
drone.io (open source edition) config for rails with postgres db, and output, logs, etc.
image: ruby2.0.0
env:
- RAILS_ENV=test
script:
- cp config/drone.database.yml config/database.yml
- bundle install
- psql -c 'create database test;' -U postgres -h 127.0.0.1
- bin/rake db:schema:load
- bin/rake test:all
services: