From 2743e5e7cc06941db847110be9d3ed29923ecb42 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 11 Jan 2016 15:01:49 -0500 Subject: [PATCH] Setup travis ci --- .travis.yml | 9 +++++++++ Gemfile | 1 + Gemfile.lock | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..19789fa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: ruby +before_script: + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + - sleep 3 + - RACK_ENV=test bundle exec rake db:create + - RACK_ENV=test bundle exec rake db:migrate +script: + - RACK_ENV=test bundle exec rspec diff --git a/Gemfile b/Gemfile index f144423..58343ad 100644 --- a/Gemfile +++ b/Gemfile @@ -23,4 +23,5 @@ group :development do gem 'launchy' gem 'pry' gem 'rerun' + gem 'rake' end diff --git a/Gemfile.lock b/Gemfile.lock index 84fc6a7..6955f03 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -63,6 +63,7 @@ GEM rack rack-test (0.6.3) rack (>= 1.0) + rake (10.4.2) rb-fsevent (0.9.5) rb-inotify (0.9.5) ffi (>= 0.5.0) @@ -128,6 +129,7 @@ DEPENDENCIES factory_girl launchy pry + rake rerun rspec sinatra