Skip to content

Commit

Permalink
Merge pull request #120 from smeevil/master
Browse files Browse the repository at this point in the history
added support for ~/.excoversalls/coveralls.json
  • Loading branch information
parroty committed Nov 12, 2017
2 parents 4a76b47 + d4eb066 commit 782ac5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/excoveralls/settings.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ defmodule ExCoveralls.Settings do
defmodule Files do
@file_name "coveralls.json"
def default_file, do: "#{Path.dirname(__ENV__.file)}/../conf/#{@file_name}"
def custom_file, do: "#{System.cwd}/#{@file_name}"
def custom_file do
dot_file = Path.expand("~/.excoveralls/coveralls.json")
if File.exists?(dot_file), do: dot_file, else: "#{System.cwd}/#{@file_name}"
end
end

@doc """
Expand Down

0 comments on commit 782ac5e

Please sign in to comment.