X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=mix.exs;h=615f1d50b87ae4f8876b9986b7791347cf844ae0;hb=73609211a425922a5068d3912a36b82abe24e12c;hp=20ab415fc62bbc18ec769cd0ecbd94cd3f404aa4;hpb=b0d2b539347f75b15bdeb38d80ff4e0d8dc9fec5;p=akkoma diff --git a/mix.exs b/mix.exs index 20ab415fc..615f1d50b 100644 --- a/mix.exs +++ b/mix.exs @@ -8,7 +8,7 @@ defmodule Pleroma.Mixfile do elixir: "~> 1.9", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), - elixirc_options: [warnings_as_errors: warnings_as_errors(Mix.env())], + elixirc_options: [warnings_as_errors: warnings_as_errors()], xref: [exclude: [:eldap]], start_permanent: Mix.env() == :prod, aliases: aliases(), @@ -91,8 +91,7 @@ defmodule Pleroma.Mixfile do defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] - defp warnings_as_errors(:prod), do: false - defp warnings_as_errors(_), do: true + defp warnings_as_errors, do: System.get_env("CI") == "true" # Specifies OAuth dependencies. defp oauth_deps do