Skip to content

Commit

Permalink
drone
Browse files Browse the repository at this point in the history
  • Loading branch information
gewo committed Mar 24, 2014
1 parent c25e0f5 commit 94801ef
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
image: ruby2.0.0
env:
- DEBUG=1
- BUNDLER_CACHE=/tmp/bundler
script:
- sudo chown ubuntu:ubuntu /tmp/bundler
- script/run_tests
services:
- mongodb
cache:
- /tmp/bundler
11 changes: 11 additions & 0 deletions script/run_tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

[ -n "$DEBUG" ] && set -x

bundler_cache=${BUNDLER_CACHE:-vendor/bundle}
bundle check --path=$bundler_cache || bundle install --path=$bundler_cache

# Appraisal does not like vendored gem installations...
GEM_HOME=vendor/bundle/ruby/2.0.0 gem install bundler

bundle exec rake appraisal

0 comments on commit 94801ef

Please sign in to comment.