Skip to content

Commit

Permalink
Merge f93de8b into be17fe9
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianoPC authored Jun 28, 2016
2 parents be17fe9 + f93de8b commit b30b618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/coveralls/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class CommandLine < Thor
def push
return unless ensure_can_run_locally!
ENV["COVERALLS_RUN_LOCALLY"] = "true"
cmd = "bundle exec rake"
cmds = "bundle exec rake"
if File.exist?('.travis.yml')
cmd = YAML.load_file('.travis.yml')["script"] || cmd rescue cmd
cmds = YAML.load_file('.travis.yml')["script"] || cmds rescue cmds
end
exec cmd
cmds.each { |cmd| system cmd }
ENV["COVERALLS_RUN_LOCALLY"] = nil
end

Expand Down

0 comments on commit b30b618

Please sign in to comment.