summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-10 20:37:50 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-10 20:37:50 +0200
commit174540b18b2618adef74d853debec2c9663147b2 (patch)
treeccda32551777964d8f353c8f7156b6477c8168d4
parentfc8bd8f760fac40287681894dfd9a45e8c4d0517 (diff)
downloadgitlab-shell-174540b18b2618adef74d853debec2c9663147b2.tar.gz
added .travis.yml, coveralls
-rw-r--r--.travis.yml12
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock16
-rw-r--r--spec/spec_helper.rb5
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"
+
diff --git a/Gemfile b/Gemfile
index 1756e4f..6d28a71 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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