Skip to content

Commit

Permalink
test on all supported ruby versions and split out rubocop (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser authored and ddnexus committed May 31, 2018
1 parent af95233 commit ae48f13
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
AllCops:
TargetRubyVersion: 2.3

Layout:
Enabled: false

Expand Down
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
language: ruby
rvm:
- 2.3
- 2.4
- 2.5
script: bundle exec rake $TASK
env:
- TASK=test
matrix:
include:
- env: TASK=rubocop
rvm: 2.3

2 changes: 1 addition & 1 deletion pagy.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.require_paths = ['lib']

s.files = `git ls-files -z`.split("\x0").select{|f| f.start_with?('lib', 'pagy.gemspec', 'LICENSE') }

s.required_ruby_version = '>= 2.3.0'

s.add_development_dependency 'bundler', '~> 1.16'
s.add_development_dependency 'rake', '~> 10.0'
Expand Down

0 comments on commit ae48f13

Please sign in to comment.