Skip to content

Commit

Permalink
Setupcoveralls (publiclab#438)
Browse files Browse the repository at this point in the history
* Add coveralls

* Fix gemfile

* Fix env variable

* Add coveralls token

* Update README.md
  • Loading branch information
jywarren authored and chen-robert committed Dec 5, 2019
1 parent c28f499 commit 38ca7ff
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci
repo_token: REPO_TOKEN
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ install:
- docker-compose run web bower install --allow-root

script:
- docker-compose run web bash -l -c "rake test"
- sed -ri "s/REPO_TOKEN/$REPO_TOKEN/" .coveralls.yml
- docker-compose run web bash -l -c "CI=true TRAVIS=true rake test"
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ group :dependencies do
gem "ruby-openid", "~>2.5"
gem "open_id_authentication"
gem "RubyInline"
gem "coveralls", require: false
gem "paperclip", "~>4.2.2"

# if you use amazon s3 for warpable image storage
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## MapKnitter 2
[![Coverage Status](https://coveralls.io/repos/github/kaunair/mapknitter/badge.svg?branch=%28HEAD+detached+at+3dd0c43%29)](https://coveralls.io/github/kaunair/mapknitter?branch=%28HEAD+detached+at+3dd0c43%29)

Use Public Lab's open source MapKnitter to upload your own aerial photographs (for example those from balloon or kite mapping: http://publiclab.org/balloon-mapping) and combine them into:

Expand Down
2 changes: 2 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'coveralls'
Coveralls.wear!('rails')
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
Expand Down

0 comments on commit 38ca7ff

Please sign in to comment.