diff options
author | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-10-12 20:58:12 +0200 |
---|---|---|
committer | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-10-12 21:21:51 +0200 |
commit | 66d36a34b102f8dfeaa81df0cc343ff96eca9f4c (patch) | |
tree | 24445d5272726ad9f666128598430dba278a964d /mix.exs | |
parent | write docs (diff) |
use test reports and coverage in CI
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |