Skip to content

Commit

Permalink
rakefile: avoid doing the syntaxcheck on vendor dir
Browse files Browse the repository at this point in the history
Looks like travis installs all gems to the vendor dir,
that means that the syntaxcheck will check all the ruby files
under that directory, slowing down the travis work for no reason.

This removes any rb files coming from under the vendor directory
  • Loading branch information
Itxaka committed Jul 21, 2017
1 parent 5c1fca8 commit 1259a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ unless ENV["PACKAGING"] && ENV["PACKAGING"] == "yes"
RSpec::Core::RakeTask.new(:spec)

task :syntaxcheck do
system("for f in `find -name \*.rb`; do echo -n \"Syntaxcheck $f: \"; ruby -wc $f || exit $? ; done")
system("for f in `find -not -path './vendor*' -name \*.rb`; do echo -n \"Syntaxcheck $f: \"; ruby -wc $f || exit $? ; done")
exit $?.exitstatus
end

Expand Down

0 comments on commit 1259a87

Please sign in to comment.