summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs10
1 files changed, 8 insertions, 2 deletions
diff --git a/mix.exs b/mix.exs
index 928f7a1..61bf8df 100644
--- a/mix.exs
+++ b/mix.exs
@@ -12,10 +12,14 @@ defmodule MatrixAppService.MixProject do
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
- docs: [main: "MatrixAppService"]
+ docs: [main: "MatrixAppService"],
+ test_coverage: test_coverage(System.get_env("CI"))
]
end
+ defp test_coverage(nil), do: []
+ defp test_coverage(_), do: [tool: CoberturaCover, html_output: "cover"]
+
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
@@ -41,7 +45,9 @@ defmodule MatrixAppService.MixProject do
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:polyjuice_client, "~> 0.2.3"},
- {:ex_doc, "~> 0.22", only: :dev, runtime: false}
+ {:ex_doc, "~> 0.22", only: :dev, runtime: false},
+ {:junit_formatter, "~> 3.1", only: [:test]},
+ {:cobertura_cover, "~> 0.9.0", only: :test}
]
end