Skip to content

Commit

Permalink
Travis: Collecting the config
Browse files Browse the repository at this point in the history
  - comment
  - tighter matrix
  - pull out development dependencies into the Gemfile
  • Loading branch information
olleolleolle committed Sep 22, 2016
1 parent cdd4b7f commit 99c58d3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ coverage/
spec/*.lock
doc
.yardoc
Gemfile.lock
23 changes: 10 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
language: ruby
cache:
- bundler
language: ruby
before_install:
- gem update --system
- gem install bundler
rvm:
- 2.1
script: bundle exec rake checks
matrix:
include:
# Test install on clean system
- install: true
script:
- gem build github_changelog_generator
- gem install *.gem
- install: true
script:
- gem build github_changelog_generator
- bundle install --gemfile spec/install-gem-in-bundler.gemfile
- rvm: 2.1
install: true # This skips 'bundle install'
script: gem build github_changelog_generator && gem install *.gem
- rvm: 2.1
install: true # This skips 'bundle install'
script: gem build github_changelog_generator && bundle install
gemfile: spec/install-gem-in-bundler.gemfile
- rvm: 2.1

notifications:
email:
recipients:
Expand Down
16 changes: 11 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ source "https://rubygems.org"

gemspec

group :test do
group :development do
end

group :development, :test do
gem "rake"
gem "bundler"
gem "rubocop"
gem "overcommit"
gem "overcommit", ">= 0.31"
gem "rubocop", ">= 0.43"
end

group :test do
gem "coveralls", "~>0.8", require: false
gem "simplecov", "~>0.10", require: false
gem "codeclimate-test-reporter", "~>0.4"
# JSON 2.0.1 is ruby 2.0+
gem "json", "< 2.0"
gem "json"
gem "rspec", "< 4"
end
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ task :copy_man_page_to_manpath do |_t|
end

task checks: [:rubocop, :rspec]
task default: [:copy_man_page_to_manpath]
task default: [:rubocop, :rspec]
7 changes: 1 addition & 6 deletions github_changelog_generator.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_runtime_dependency "rake", ">= 10.0"
spec.add_runtime_dependency "github_api", ">= 0.12"
spec.add_runtime_dependency "github_api", ">= 0.14"
spec.add_runtime_dependency "rainbow", ">= 2.1"

spec.add_development_dependency "overcommit", ">= 0.31"
spec.add_development_dependency "rspec", ">= 3.2"
spec.add_development_dependency "bundler", ">= 1.7"
spec.add_development_dependency "rubocop", ">= 0.31"
end

0 comments on commit 99c58d3

Please sign in to comment.