summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorPierre de Lacroix <pierre@pdelacroix.com>2020-10-12 20:58:12 +0200
committerPierre de Lacroix <pierre@pdelacroix.com>2020-10-12 21:21:51 +0200
commit66d36a34b102f8dfeaa81df0cc343ff96eca9f4c (patch)
tree24445d5272726ad9f666128598430dba278a964d /mix.exs
parentwrite docs (diff)
use test reports and coverage in CI
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