Merge branch 'tests-warning-as-errors' into 'develop'

Enable warnings_as_errors for tests

See merge request pleroma/pleroma!548
This commit is contained in:
lambda 2018-12-15 15:22:59 +00:00
commit 7281ab0b3c

View file

@ -8,12 +8,7 @@ defmodule Pleroma.Mixfile do
elixir: "~> 1.4", elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()), elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(), compilers: [:phoenix, :gettext] ++ Mix.compilers(),
elixirc_options: elixirc_options: [warnings_as_errors: true],
if Mix.env() == :test do
[]
else
[warnings_as_errors: true]
end,
start_permanent: Mix.env() == :prod, start_permanent: Mix.env() == :prod,
aliases: aliases(), aliases: aliases(),
deps: deps(), deps: deps(),