File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,26 @@ language: ruby
2
2
sudo : false
3
3
before_install :
4
4
- bundle update
5
+ env :
6
+ global :
7
+ - CC_TEST_REPORTER_ID=98c9b3070ea9ac0e8f7afb6570f181506c3a06372b1db5c7deb8e46089fdf132
8
+ - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
5
9
rvm :
6
10
- 2.2.2
7
11
- 2.3.3
8
12
- ruby-head
9
-
10
13
matrix :
11
14
allow_failures :
12
15
- rvm : ruby-head
16
+ before_script :
17
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
18
+ - chmod +x ./cc-test-reporter
19
+ - ./cc-test-reporter before-build
20
+ after_script :
21
+ # Preferably you will run test-reporter on branch update events. But
22
+ # if you setup travis to build PR updates only, you don't need to run
23
+ # the line below
24
+ - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
25
+ # In the case where travis is setup to build PR updates only,
26
+ # uncomment the line below
27
+ # - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ Gem::Specification.new do |spec|
21
21
spec . add_development_dependency 'sqlite3'
22
22
spec . add_development_dependency 'rake' , '~> 11.3'
23
23
spec . add_development_dependency 'rspec-rails' , '~> 3.5'
24
+ spec . add_development_dependency 'simplecov'
24
25
end
Original file line number Diff line number Diff line change
1
+ require 'simplecov'
2
+ SimpleCov . start do
3
+ add_filter '/spec/'
4
+ end
5
+
1
6
# This file is copied to spec/ when you run 'rails generate rspec:install'
2
7
ENV [ 'RAILS_ENV' ] ||= 'test'
3
8
require File . expand_path ( '../dummy/config/environment' , __FILE__ )
You can’t perform that action at this time.
0 commit comments