Skip to content

Commit

Permalink
Run RuboCop at TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
zeljkofilipin committed Dec 23, 2014
1 parent 5f5a721 commit 58fcf8b
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
inherit_from: .rubocop_todo.yml
22 changes: 22 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This configuration was generated by `rubocop --auto-gen-config`
# on 2014-12-23 16:52:47 +0100 using RuboCop version 0.28.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 81

# Offense count: 3
# Cop supports --auto-correct.
Style/LeadingCommentSpace:
Enabled: false

# Offense count: 44
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
Style/StringLiterals:
EnforcedStyle: double_quotes
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
rvm:
- 2.1.4
- 2.1.5
script:
- bundle exec rubocop
- bundle exec ruby manuscript/lib/driver.rb
- bundle exec ruby manuscript/lib/element.rb
- bundle exec ruby manuscript/lib/headless_phantomjs.rb
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
source "https://rubygems.org/"

gem "headless"
gem "rubocop"
gem "selenium-webdriver"
17 changes: 17 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,39 @@
GEM
remote: https://rubygems.org/
specs:
ast (2.0.0)
astrolabe (1.3.0)
parser (>= 2.2.0.pre.3, < 3.0)
childprocess (0.5.5)
ffi (~> 1.0, >= 1.0.11)
ffi (1.9.6)
headless (1.0.2)
multi_json (1.10.1)
parser (2.2.0.pre.8)
ast (>= 1.1, < 3.0)
slop (~> 3.4, >= 3.4.5)
powerpack (0.0.9)
rainbow (2.0.0)
rubocop (0.28.0)
astrolabe (~> 1.3)
parser (>= 2.2.0.pre.7, < 3.0)
powerpack (~> 0.0.6)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.4)
ruby-progressbar (1.7.1)
rubyzip (1.1.6)
selenium-webdriver (2.44.0)
childprocess (~> 0.5)
multi_json (~> 1.0)
rubyzip (~> 1.0)
websocket (~> 1.0)
slop (3.6.0)
websocket (1.2.1)

PLATFORMS
ruby

DEPENDENCIES
headless
rubocop
selenium-webdriver

0 comments on commit 58fcf8b

Please sign in to comment.