-
-
Save deivid-rodriguez/b28650631a02cd5448bd to your computer and use it in GitHub Desktop.
Problems with TravisLint in overcommit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.overcommit.yml b/.overcommit.yml | |
new file mode 100644 | |
index 0000000..b265629 | |
--- /dev/null | |
+++ b/.overcommit.yml | |
@@ -0,0 +1,19 @@ | |
+# | |
+# Use this file to configure the Overcommit hooks you wish to use. This will | |
+# extend the default configuration defined in: | |
+# https://github.com/causes/overcommit/blob/master/config/default.yml | |
+# | |
+# At the topmost level of this YAML file is a key representing type of hook | |
+# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can | |
+# customize each hook, such as whether to only run it on certain files (via | |
+# `include`), whether to only display output if it fails (via `quiet`), etc. | |
+# | |
+# For a complete list of hooks, see: | |
+# https://github.com/causes/overcommit/tree/master/lib/overcommit/hook | |
+# | |
+# For a complete list of options that you can use to customize hooks, see: | |
+# https://github.com/causes/overcommit#configuration | |
+# | |
+PreCommit: | |
+ TravisLint: | |
+ on_warn: pass | |
diff --git a/.travis.yml b/.travis.yml | |
index f9a2a5e..7d10a53 100644 | |
--- a/.travis.yml | |
+++ b/.travis.yml | |
@@ -25,7 +25,6 @@ env: | |
matrix: | |
allow_failures: | |
- rvm: ruby-head | |
- fast_finish: true | |
addons: | |
code_climate: | |
diff --git a/Gemfile b/Gemfile | |
index c602e4c..a9e22a5 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -11,5 +11,9 @@ group :development, :test do | |
gem 'minitest', '~> 5.5' | |
gem 'simplecov', '0.9.2', require: false | |
gem 'codeclimate-test-reporter', '0.4.7', require: false | |
- gem 'pry', '0.10.1', require: false | |
+end | |
+ | |
+group :development do | |
+ gem 'overcommit', '0.23.0', require: false | |
+ gem 'travis', '~> 1.7', require: false | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:51 $ git commit | |
Running pre-commit hooks | |
Checking Gemfile dependencies...........................[BundleCheck] OK | |
Checking for local paths in Gemfile.............[LocalPathsInGemfile] OK | |
Analyzing with Rubocop......................................[Rubocop] OK | |
Checking for trailing whitespace.................[TrailingWhitespace] OK | |
Checking Travis CI configuration.........................[TravisLint] FAILED | |
Hook raised unexpected error | |
No such file or directory - bundle exec travis | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/childprocess-0.5.5/lib/childprocess/unix/fork_exec_process.rb:58:in `launch_process' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/childprocess-0.5.5/lib/childprocess/abstract_process.rb:82:in `start' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/subprocess.rb:23:in `spawn' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/utils.rb:118:in `execute' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook/base.rb:111:in `execute' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook/pre_commit/travis_lint.rb:5:in `run' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook/base.rb:45:in `run_and_transform' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook_runner.rb:87:in `block in run_hook' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/interrupt_handler.rb:62:in `disable_until_finished_or_interrupted' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook_runner.rb:86:in `run_hook' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook_runner.rb:45:in `block in run_hooks' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook_runner.rb:44:in `each' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook_runner.rb:44:in `run_hooks' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook_runner.rb:27:in `block in run' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/interrupt_handler.rb:78:in `isolate_from_interrupts' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/overcommit-0.23.0/lib/overcommit/hook_runner.rb:24:in `run' | |
.git/hooks/pre-commit:54:in `<main>' | |
Checking YAML syntax.....................................[YamlSyntax] OK | |
✗ One or more pre-commit hooks failed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:51 $ git commit | |
Running pre-commit hooks | |
Checking Gemfile dependencies...........................[BundleCheck] OK | |
Checking for local paths in Gemfile.............[LocalPathsInGemfile] OK | |
Analyzing with Rubocop......................................[Rubocop] OK | |
Checking for trailing whitespace.................[TrailingWhitespace] OK | |
Checking Travis CI configuration.........................[TravisLint] FAILED | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/ffi-1.9.8/lib/ffi_c.so: [BUG] Segmentation fault | |
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0055 p:-5855836 s:0199 b:0199 l:000198 d:000198 TOP | |
c:0054 p:---- s:0197 b:0197 l:000196 d:000196 CFUNC :require | |
c:0053 p:0157 s:0193 b:0193 l:000192 d:000192 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55 | |
c:0052 p:0015 s:0186 b:0186 l:000185 d:000185 METHOD /home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9 | |
c:0051 p:0029 s:0181 b:0181 l:000177 d:000180 BLOCK /home/davidr/.rvm/gems/ruby-2.2.1/gems/ffi-1.9.8/lib/ffi.rb:18 | |
c:0050 p:0212 s:0178 b:0178 l:000177 d:000177 TOP /home/davidr/.rvm/gems/ruby-2.2.1/gems/ffi-1.9.8/lib/ffi.rb:3 | |
c:0049 p:---- s:0176 b:0176 l:000175 d:000175 FINISH | |
c:0048 p:---- s:0174 b:0174 l:000173 d:000173 CFUNC :require | |
c:0047 p:0157 s:0170 b:0170 l:000169 d:000169 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55 | |
c:0046 p:0015 s:0163 b:0163 l:000162 d:000162 METHOD /home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9 | |
c:0045 p:0023 s:0158 b:0158 l:000157 d:000157 TOP /home/davidr/.rvm/gems/ruby-2.2.1/gems/ethon-0.7.3/lib/ethon.rb:2 | |
c:0044 p:---- s:0156 b:0156 l:000155 d:000155 FINISH | |
c:0043 p:---- s:0154 b:0154 l:000153 d:000153 CFUNC :require | |
c:0042 p:0157 s:0150 b:0150 l:000149 d:000149 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55 | |
c:0041 p:0015 s:0143 b:0143 l:000142 d:000142 METHOD /home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9 | |
c:0040 p:0023 s:0138 b:0138 l:000137 d:000137 TOP /home/davidr/.rvm/gems/ruby-2.2.1/gems/typhoeus-0.7.1/lib/typhoeus.rb:2 | |
c:0039 p:---- s:0136 b:0136 l:000135 d:000135 FINISH | |
c:0038 p:---- s:0134 b:0134 l:000133 d:000133 CFUNC :require | |
c:0037 p:0157 s:0130 b:0130 l:000129 d:000129 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55 | |
c:0036 p:0015 s:0123 b:0123 l:000122 d:000122 METHOD /home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9 | |
c:0035 p:0020 s:0118 b:0118 l:000117 d:000117 METHOD /home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/middleware.rb:14 | |
c:0034 p:0041 s:0113 b:0113 l:000112 d:000112 CLASS /home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/adapter/typhoeus.rb:10 | |
c:0033 p:0019 s:0111 b:0111 l:000110 d:000110 CLASS /home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/adapter/typhoeus.rb:3 | |
c:0032 p:0011 s:0109 b:0109 l:000108 d:000108 CLASS /home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/adapter/typhoeus.rb:2 | |
c:0031 p:0009 s:0107 b:0107 l:000106 d:000106 TOP /home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/adapter/typhoeus.rb:1 | |
c:0030 p:---- s:0105 b:0105 l:000104 d:000104 FINISH | |
c:0029 p:0019 s:0103 b:0103 l:000102 d:000102 CLASS /home/davidr/.rvm/gems/ruby-2.2.1/gems/typhoeus-0.7.1/lib/typhoeus/adapters/faraday.rb:18 | |
c:0028 p:0011 s:0101 b:0101 l:000100 d:000100 CLASS /home/davidr/.rvm/gems/ruby-2.2.1/gems/typhoeus-0.7.1/lib/typhoeus/adapters/faraday.rb:4 | |
c:0027 p:0021 s:0099 b:0099 l:000098 d:000098 TOP /home/davidr/.rvm/gems/ruby-2.2.1/gems/typhoeus-0.7.1/lib/typhoeus/adapters/faraday.rb:3 | |
c:0026 p:---- s:0097 b:0097 l:000096 d:000096 FINISH | |
c:0025 p:---- s:0095 b:0095 l:000094 d:000094 CFUNC :require | |
c:0024 p:0157 s:0091 b:0091 l:000090 d:000090 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55 | |
c:0023 p:0015 s:0084 b:0084 l:000083 d:000083 METHOD /home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9 | |
c:0022 p:0107 s:0079 b:0079 l:000078 d:000078 TOP /home/davidr/.rvm/gems/ruby-2.2.1/gems/travis-1.7.6.travis.673.6/lib/travis/client/session.rb:10 | |
c:0021 p:---- s:0077 b:0077 l:000076 d:000076 FINISH | |
c:0020 p:---- s:0075 b:0075 l:000074 d:000074 CFUNC :require | |
c:0019 p:0157 s:0071 b:0071 l:000070 d:000070 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55 | |
c:0018 p:0015 s:0064 b:0064 l:000063 d:000063 METHOD /home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9 | |
c:0017 p:0108 s:0059 b:0059 l:000058 d:000058 TOP /home/davidr/.rvm/gems/ruby-2.2.1/gems/travis-1.7.6.travis.673.6/lib/travis/client.rb:8 | |
c:0016 p:---- s:0057 b:0057 l:000056 d:000056 FINISH | |
c:0015 p:---- s:0055 b:0055 l:000054 d:000054 CFUNC :require | |
c:0014 p:0157 s:0051 b:0051 l:000050 d:000050 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55 | |
c:0013 p:0013 s:0044 b:0044 l:000043 d:000043 TOP /home/davidr/.rvm/gems/ruby-2.2.1/gems/travis-1.7.6.travis.673.6/lib/travis/cli.rb:2 | |
c:0012 p:---- s:0041 b:0041 l:000040 d:000040 FINISH | |
c:0011 p:---- s:0039 b:0039 l:000038 d:000038 CFUNC :require | |
c:0010 p:0157 s:0035 b:0035 l:000034 d:000034 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55 | |
c:0009 p:0090 s:0028 b:0028 l:000027 d:000027 TOP /home/davidr/.rvm/gems/ruby-2.2.1/gems/travis-1.7.6.travis.673.6/bin/travis:7 | |
c:0008 p:---- s:0025 b:0025 l:000024 d:000024 FINISH | |
c:0007 p:---- s:0023 b:0023 l:000022 d:000022 CFUNC :load | |
c:0006 p:0187 s:0019 b:0019 l:001228 d:000ad8 EVAL /home/davidr/.rvm/gems/ruby-2.2.1/bin/travis:23 | |
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 FINISH | |
c:0004 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC :eval | |
c:0003 p:0160 s:0007 b:0007 l:001228 d:000950 EVAL /home/davidr/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15 | |
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH | |
c:0001 p:0000 s:0002 b:0002 l:001228 d:001228 TOP | |
-- Ruby level backtrace information ---------------------------------------- | |
/home/davidr/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval' | |
/home/davidr/.rvm/gems/ruby-2.2.1/bin/travis:23:in `<main>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/bin/travis:23:in `load' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/travis-1.7.6.travis.673.6/bin/travis:7:in `<top (required)>' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/travis-1.7.6.travis.673.6/lib/travis/cli.rb:2:in `<top (required)>' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/travis-1.7.6.travis.673.6/lib/travis/client.rb:8:in `<top (required)>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9:in `require_with_backports' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/travis-1.7.6.travis.673.6/lib/travis/client/session.rb:10:in `<top (required)>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9:in `require_with_backports' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/typhoeus-0.7.1/lib/typhoeus/adapters/faraday.rb:3:in `<top (required)>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/typhoeus-0.7.1/lib/typhoeus/adapters/faraday.rb:4:in `<module:Faraday>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/typhoeus-0.7.1/lib/typhoeus/adapters/faraday.rb:18:in `<class:Adapter>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/adapter/typhoeus.rb:1:in `<top (required)>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/adapter/typhoeus.rb:2:in `<module:Faraday>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/adapter/typhoeus.rb:3:in `<class:Adapter>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/adapter/typhoeus.rb:10:in `<class:Typhoeus>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/faraday-0.9.1/lib/faraday/middleware.rb:14:in `dependency' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9:in `require_with_backports' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/typhoeus-0.7.1/lib/typhoeus.rb:2:in `<top (required)>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9:in `require_with_backports' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/ethon-0.7.3/lib/ethon.rb:2:in `<top (required)>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9:in `require_with_backports' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/ffi-1.9.8/lib/ffi.rb:3:in `<top (required)>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/ffi-1.9.8/lib/ffi.rb:18:in `rescue in <top (required)>' | |
/home/davidr/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/std_lib.rb:9:in `require_with_backports' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require' | |
-- C level backtrace information ------------------------------------------- | |
Checking YAML syntax.....................................[YamlSyntax] OK | |
✗ One or more pre-commit hooks failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment