Enable warning_as_errors for tests
authorhref <href@random.sh>
Fri, 14 Dec 2018 17:14:40 +0000 (18:14 +0100)
committerhref <href@random.sh>
Fri, 14 Dec 2018 17:14:40 +0000 (18:14 +0100)
mix.exs

diff --git a/mix.exs b/mix.exs
index 0fb40e07b11387b98ae161f5d83ddb939d6d2d5d..2bd67f2a16b16c0a5a8ca72dd1baca842fec7c05 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -8,12 +8,7 @@ defmodule Pleroma.Mixfile do
       elixir: "~> 1.4",
       elixirc_paths: elixirc_paths(Mix.env()),
       compilers: [:phoenix, :gettext] ++ Mix.compilers(),
-      elixirc_options:
-        if Mix.env() == :test do
-          []
-        else
-          [warnings_as_errors: true]
-        end,
+      elixirc_options: [warnings_as_errors: true],
       start_permanent: Mix.env() == :prod,
       aliases: aliases(),
       deps: deps(),