Skip to content

Commit

Permalink
Merge pull request #17 from khiav223577/enhance/deprecated_codeclimat…
Browse files Browse the repository at this point in the history
…e_gem

Remove deprecated codeclimate-test-reporter gem and update travis config
  • Loading branch information
khiav223577 authored May 9, 2019
2 parents 2564ac7 + 54055fe commit 5d249f0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
sudo: false
env:
global:
- CC_TEST_REPORTER_ID=6384ecacad280dc863595e6e369a43299e157c0e7588b636e025a1808a3f5581
language: ruby
rvm:
- 2.2
- 2.3
sudo: required
dist: trusty
env:
- DB=mysql
- DB=pg
Expand All @@ -13,6 +15,9 @@ before_install:
- gem i rubygems-update -v '<3' && update_rubygems
- gem install bundler -v 1.17.3
- gem --version
- 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
before_script:
- mysql -u root -e 'CREATE DATABASE travis_ci_test;'
- psql -c 'create database travis_ci_test;' -U postgres
Expand All @@ -22,9 +27,7 @@ gemfile:
- gemfiles/5.0.gemfile
- gemfiles/5.1.gemfile
- gemfiles/5.2.gemfile
addons:
code_climate:
repo_token: 6384ecacad280dc863595e6e369a43299e157c0e7588b636e025a1808a3f5581
after_success:
- bundle exec codeclimate-test-reporter

script:
- bundle exec rake test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
1 change: 0 additions & 1 deletion gemfiles/3.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ group :test do
when "postgres" ; gem 'pg', '~> 0.18'
end
gem "simplecov"
gem "codeclimate-test-reporter", "~> 1.0.0"
end

gemspec :path => "../"
Expand Down
1 change: 0 additions & 1 deletion gemfiles/4.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ group :test do
when "postgres" ; gem 'pg', '~> 0.18'
end
gem "simplecov"
gem "codeclimate-test-reporter", "~> 1.0.0"
end

gemspec :path => "../"
Expand Down
1 change: 0 additions & 1 deletion gemfiles/5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ group :test do
when "postgres" ; gem 'pg', '~> 0.18'
end
gem "simplecov"
gem "codeclimate-test-reporter", "~> 1.0.0"
end

gemspec :path => "../"
Expand Down
1 change: 0 additions & 1 deletion gemfiles/5.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ group :test do
when "postgres" ; gem 'pg', '~> 0.18'
end
gem "simplecov"
gem "codeclimate-test-reporter", "~> 1.0.0"
end

gemspec :path => "../"
Expand Down
1 change: 0 additions & 1 deletion gemfiles/5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ group :test do
when "postgres" ; gem 'pg', '~> 0.18'
end
gem "simplecov"
gem "codeclimate-test-reporter", "~> 1.0.0"
end

gemspec :path => "../"
Expand Down

0 comments on commit 5d249f0

Please sign in to comment.