Bläddra i källkod

Merge branch 'warnings-as-errors' into 'develop'

Enable :warnings_as_errors for CI only

See merge request pleroma/pleroma!3474
merge-requests/3474/merge
Alex Gleason 2 år sedan
förälder
incheckning
f3b7886983
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. +2
    -3
      mix.exs

+ 2
- 3
mix.exs Visa fil

@@ -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(),
@@ -90,8 +90,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


Laddar…
Avbryt
Spara