Skip to content

Commit

Permalink
add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Raekye committed Jan 31, 2015
1 parent f6d741d commit cfc6caf
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
service_name: travis-ci
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ env:
- DATABASE_HOST=localhost - DATABASE_HOST=localhost
- DEVISE_SECRET_KEY=1234abc - DEVISE_SECRET_KEY=1234abc
- DIGITAL_OCEAN_API_KEY=abc123 - DIGITAL_OCEAN_API_KEY=abc123
- DIGITAL_OCEAN_SSH_PUBLIC_KEY_PATH=id_rsa.pub
before_script: before_script:
- psql -c 'create database gamocosm_test;' -U postgres - psql -c 'create database gamocosm_test;' -U postgres
- bundle exec rake db:schema:load - bundle exec rake db:schema:load
- ssh-keygen -t rsa -N "" -f id_rsa
script: bundle exec rake test:functionals test:units script: bundle exec rake test:functionals test:units
1 change: 1 addition & 0 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ end
group :test do group :test do
gem 'simplecov', require: false gem 'simplecov', require: false
gem 'webmock', require: false gem 'webmock', require: false
gem 'coveralls', require: false
end end
14 changes: 14 additions & 0 deletions Gemfile.lock
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ GEM
coffee-script-source (1.8.0) coffee-script-source (1.8.0)
colorize (0.7.3) colorize (0.7.3)
connection_pool (2.0.0) connection_pool (2.0.0)
coveralls (0.7.8)
multi_json (~> 1.10)
rest-client (~> 1.7)
simplecov (~> 0.9.1)
term-ansicolor (~> 1.3)
thor (~> 0.19.1)
crack (0.4.2) crack (0.4.2)
safe_yaml (~> 1.0.0) safe_yaml (~> 1.0.0)
dalli (2.7.2) dalli (2.7.2)
Expand Down Expand Up @@ -101,6 +107,7 @@ GEM
net-scp (1.2.1) net-scp (1.2.1)
net-ssh (>= 2.6.5) net-ssh (>= 2.6.5)
net-ssh (2.9.1) net-ssh (2.9.1)
netrc (0.10.2)
newrelic_rpm (3.9.5.251) newrelic_rpm (3.9.5.251)
orm_adapter (0.5.0) orm_adapter (0.5.0)
pg (0.17.1) pg (0.17.1)
Expand Down Expand Up @@ -130,6 +137,9 @@ GEM
redis (3.1.0) redis (3.1.0)
redis-namespace (1.5.1) redis-namespace (1.5.1)
redis (~> 3.0, >= 3.0.4) redis (~> 3.0, >= 3.0.4)
rest-client (1.7.2)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
safe_yaml (1.0.4) safe_yaml (1.0.4)
sass (3.2.19) sass (3.2.19)
sass-rails (4.0.3) sass-rails (4.0.3)
Expand Down Expand Up @@ -171,10 +181,13 @@ GEM
colorize colorize
net-scp (>= 1.1.2) net-scp (>= 1.1.2)
net-ssh (>= 2.8.0) net-ssh (>= 2.8.0)
term-ansicolor (1.3.0)
tins (~> 1.0)
thor (0.19.1) thor (0.19.1)
thread_safe (0.3.4) thread_safe (0.3.4)
tilt (1.4.1) tilt (1.4.1)
timers (1.1.0) timers (1.1.0)
tins (1.3.3)
tzinfo (1.2.2) tzinfo (1.2.2)
thread_safe (~> 0.1) thread_safe (~> 0.1)
uglifier (2.5.3) uglifier (2.5.3)
Expand All @@ -194,6 +207,7 @@ DEPENDENCIES
barge barge
bootstrap-sass (~> 3.3.3) bootstrap-sass (~> 3.3.3)
coffee-rails (~> 4.0.0) coffee-rails (~> 4.0.0)
coveralls
dalli dalli
devise (~> 3.2.4) devise (~> 3.2.4)
exception_notification exception_notification
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Hmmmm.
- Methods that "do things" should return nil on success, or a message or object on error. - Methods that "do things" should return nil on success, or a message or object on error.
- Methods that "return things" should use `.error!` to mark a return value is an error. These errors should always be strings. - Methods that "return things" should use `.error!` to mark a return value is an error. These errors should always be strings.
- You can use `.error?` to check if a return value is an error. `nil` cannot be made an error. - You can use `.error?` to check if a return value is an error. `nil` cannot be made an error.
- These methods are defined on `Object` in `config/initializers/error.rb` - These methods are defined on `Object` in `config/initializers/my_extensions.rb`
- I prefer only throwing exceptions in "exceptional cases", not when I expect something to go wrong (e.g. user input). - I prefer only throwing exceptions in "exceptional cases", not when I expect something to go wrong (e.g. user input).


##### Important checks ##### Important checks
Expand Down Expand Up @@ -156,7 +156,7 @@ Hmmmm.


### Credits ### Credits
- Special thanks to [geetfun][2] who helped with the original development - Special thanks to [geetfun][2] who helped with the original development
- [SuperMarioBro][7] for helping iron out some initial bugs - [SuperMarioBro][7] for helping iron out some initial bugs, adding support for more Minecraft flavours
- [bearbin][8] for helping iron out some initial bugs - [bearbin][8] for helping iron out some initial bugs
- [chiisana][9] for feedback and other ideas, resources - [chiisana][9] for feedback and other ideas, resources
- [KayoticSully][12] for planning and development on the server wrapper API - [KayoticSully][12] for planning and development on the server wrapper API
Expand Down
5 changes: 5 additions & 0 deletions test/test_helper.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,10 @@
ENV['RAILS_ENV'] ||= 'test' ENV['RAILS_ENV'] ||= 'test'
require 'simplecov' require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter,
]
SimpleCov.start SimpleCov.start
require File.expand_path('../../config/environment', __FILE__) require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help' require 'rails/test_help'
Expand Down

0 comments on commit cfc6caf

Please sign in to comment.