diff options
-rw-r--r-- | .travis.yml | 12 | ||||
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | Gemfile.lock | 16 | ||||
-rw-r--r-- | spec/spec_helper.rb | 5 |
4 files changed, 34 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6307280 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: ruby +env: + - TRAVIS=true +branches: + only: + - 'master' +rvm: + - 1.9.3-p327 +before_script: + - "cp config.yml.example config.yml" +script: "bundle exec rspec spec" + @@ -1,6 +1,7 @@ source "http://rubygems.org" group :development do + gem 'coveralls', require: false gem 'rspec' gem 'guard' gem 'guard-rspec' diff --git a/Gemfile.lock b/Gemfile.lock index 6b7360d..f5733c4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,6 +2,13 @@ GEM remote: http://rubygems.org/ specs: coderay (1.0.8) + colorize (0.5.8) + coveralls (0.6.2) + colorize + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + thor diff-lcs (1.1.3) guard (1.5.4) listen (>= 0.4.2) @@ -14,10 +21,14 @@ GEM listen (0.5.3) lumberjack (1.0.2) method_source (0.8.1) + mime-types (1.21) + multi_json (1.6.1) pry (0.9.10) coderay (~> 1.0.5) method_source (~> 0.8) slop (~> 3.3.1) + rest-client (1.6.7) + mime-types (>= 1.16) rspec (2.12.0) rspec-core (~> 2.12.0) rspec-expectations (~> 2.12.0) @@ -26,6 +37,10 @@ GEM rspec-expectations (2.12.1) diff-lcs (~> 1.1.3) rspec-mocks (2.12.2) + simplecov (0.7.1) + multi_json (~> 1.0) + simplecov-html (~> 0.7.1) + simplecov-html (0.7.1) slop (3.3.3) thor (0.16.0) @@ -33,6 +48,7 @@ PLATFORMS ruby DEPENDENCIES + coveralls guard guard-rspec rspec diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d42cf9e..ccf1b63 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1 +1,6 @@ ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__), "..")) + +if ENV['TRAVIS'] + require 'coveralls' + Coveralls.wear! +end |