Skip to content

Commit

Permalink
Experimental fix for umbrella project
Browse files Browse the repository at this point in the history
  • Loading branch information
parroty committed Jan 17, 2016
1 parent e161652 commit 501d67e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/excoveralls.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ defmodule ExCoveralls do
This method will be called from mix to trigger coverage analysis.
"""
def start(compile_path, _opts) do
compile_path = List.wrap(compile_path)
Cover.compile(compile_path)

fn() ->
execute(ConfServer.get, compile_path)
end
Expand Down
7 changes: 5 additions & 2 deletions lib/excoveralls/cover.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ defmodule ExCoveralls.Cover do
@doc """
Compile the beam files for coverage analysis.
"""
def compile(compile_path) do
def compile(compile_paths) do
compile_paths = List.wrap(compile_paths)
:cover.stop
:cover.start
:cover.compile_beam_directory(compile_path |> to_char_list)
Enum.each(compile_paths, fn(compile_path) ->
:cover.compile_beam_directory(compile_path |> to_char_list)
end)
end

@doc """
Expand Down

0 comments on commit 501d67e

Please sign in to comment.