Skip to content

Commit

Permalink
🔨 feat(mix): Update project tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
worthant committed Oct 19, 2024
1 parent 441a6c1 commit 251b2a0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ defmodule TreeDict.MixProject do
version: "0.1.0",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps()
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: [
# Test coverage
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.cobertura": :test
],
test_coverage: [tool: ExCoveralls]
]
end

Expand All @@ -25,4 +35,7 @@ defmodule TreeDict.MixProject do
{:excoveralls, "~> 0.18", only: :test}
]
end

defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end

0 comments on commit 251b2a0

Please sign in to comment.