Skip to content

Commit

Permalink
coveralls integration
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Apr 30, 2018
1 parent 75c94f1 commit 05a811d
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ rvm:
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS myapp_test;'
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- bundle exec rails db:migrate RAILS_ENV=test

script: bundle exec rails test test/models/*
script: COVERALLS_REPO_TOKEN=bPQteZngJWF84BYuws90hMmXwWYcMpV9S bundle exec rails test test/models/*

after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
#after_script:
# - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ gem 'puma'

# Added at 2018-04-02 12:15:56 -0300 by michelson:
gem "capybara", "~> 2.18"
gem 'simplecov', require: false, group: :test

gem 'coveralls', require: false
24 changes: 23 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,23 @@ GEM
climate_control (0.2.0)
coderay (1.1.2)
concurrent-ruby (1.0.5)
coveralls (0.7.1)
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
term-ansicolor
thor
crass (1.0.4)
docile (1.3.0)
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
erubi (1.7.1)
globalid (0.4.1)
activesupport (>= 4.2.0)
groupdate (4.0.0)
activesupport (>= 4.2)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (1.0.0)
concurrent-ruby (~> 1.0)
json (2.1.0)
Expand All @@ -94,7 +104,9 @@ GEM
mini_portile2 (2.3.0)
minitest (5.11.3)
minitest-stub_any_instance (1.0.2)
multi_json (1.13.1)
mysql2 (0.4.6)
netrc (0.11.0)
nio4r (2.3.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
Expand Down Expand Up @@ -140,6 +152,10 @@ GEM
thor (>= 0.18.1, < 2.0)
rake (12.3.1)
redcarpet (3.4.0)
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rubyzip (1.2.1)
simplecov (0.16.1)
docile (~> 1.1)
Expand All @@ -154,13 +170,19 @@ GEM
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
term-ansicolor (1.6.0)
tins (~> 1.0)
terrapin (0.6.0)
climate_control (>= 0.0.3, < 1.0)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
tins (1.16.3)
tzinfo (1.2.5)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.5)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
Expand All @@ -173,13 +195,13 @@ PLATFORMS

DEPENDENCIES
capybara (~> 2.18)
coveralls
gdpr_rails!
minitest-stub_any_instance
mysql2 (= 0.4.6)
nokogiri
pry-byebug
puma
simplecov
sqlite3

BUNDLED WITH
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

[![Maintainability](https://api.codeclimate.com/v1/badges/4908e74f90a34ba473df/maintainability)](https://codeclimate.com/github/prey/gdpr_rails/maintainability)

[![Coverage Status](https://coveralls.io/repos/github/prey/gdpr_rails/badge.svg?branch=master)](https://coveralls.io/github/prey/gdpr_rails?branch=master)

## About this project

PolicyManager (Aka GDPR RAILS) was created with flexibility in mind to comply with the requirements of the GDPR ([General Data Protection Regulation](https://www.eugdpr.org/)). It's currently being developed at preyproject and will be battle-tested on [preyproject.com](https://preyproject.com) from May 25th.
Expand Down
2 changes: 2 additions & 0 deletions test/.coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: bPQteZngJWF84BYuws90hMmXwWYcMpV9S
4 changes: 2 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'simplecov'
SimpleCov.start
require 'coveralls'
Coveralls.wear!

require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
Expand Down

0 comments on commit 05a811d

Please sign in to comment.