Permalink
Browse files

add coveralls

  • Loading branch information...
Raekye committed Jan 31, 2015
1 parent f6d741d commit cfc6caf7640856b49727ebe4b2053a8054edb731
Showing with 25 additions and 2 deletions.
  1. +1 −0 .coveralls.yml
  2. +2 −0 .travis.yml
  3. +1 −0 Gemfile
  4. +14 −0 Gemfile.lock
  5. +2 −2 README.md
  6. +5 −0 test/test_helper.rb
@@ -0,0 +1 @@
service_name: travis-ci
@@ -11,7 +11,9 @@ env:
- DATABASE_HOST=localhost
- DEVISE_SECRET_KEY=1234abc
- DIGITAL_OCEAN_API_KEY=abc123
- DIGITAL_OCEAN_SSH_PUBLIC_KEY_PATH=id_rsa.pub
before_script:
- psql -c 'create database gamocosm_test;' -U postgres
- bundle exec rake db:schema:load
- ssh-keygen -t rsa -N "" -f id_rsa
script: bundle exec rake test:functionals test:units
@@ -59,4 +59,5 @@ end
group :test do
gem 'simplecov', require: false
gem 'webmock', require: false
gem 'coveralls', require: false
end
@@ -55,6 +55,12 @@ GEM
coffee-script-source (1.8.0)
colorize (0.7.3)
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)
safe_yaml (~> 1.0.0)
dalli (2.7.2)
@@ -101,6 +107,7 @@ GEM
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (2.9.1)
netrc (0.10.2)
newrelic_rpm (3.9.5.251)
orm_adapter (0.5.0)
pg (0.17.1)
@@ -130,6 +137,9 @@ GEM
redis (3.1.0)
redis-namespace (1.5.1)
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)
sass (3.2.19)
sass-rails (4.0.3)
@@ -171,10 +181,13 @@ GEM
colorize
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
term-ansicolor (1.3.0)
tins (~> 1.0)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
timers (1.1.0)
tins (1.3.3)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.5.3)
@@ -194,6 +207,7 @@ DEPENDENCIES
barge
bootstrap-sass (~> 3.3.3)
coffee-rails (~> 4.0.0)
coveralls
dalli
devise (~> 3.2.4)
exception_notification
@@ -119,7 +119,7 @@ Hmmmm.
- 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.
- 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).

##### Important checks
@@ -156,7 +156,7 @@ Hmmmm.

### Credits
- 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
- [chiisana][9] for feedback and other ideas, resources
- [KayoticSully][12] for planning and development on the server wrapper API
@@ -1,5 +1,10 @@
ENV['RAILS_ENV'] ||= 'test'
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter,
]
SimpleCov.start
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

0 comments on commit cfc6caf

Please sign in to comment.