diff options
author | rinpatch <rinpatch@sdf.org> | 2020-02-06 15:04:21 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-02-06 15:04:21 +0300 |
commit | 6769ecd948c8bd69bc9ba7af7d291142dc062af1 (patch) | |
tree | 5f9d3e268341e92acc1e4aed6d7f5741c400a273 /mix.exs | |
parent | 6722dade42d5f404c00386b0336d821028d58d7c (diff) | |
parent | 15cb1f6804fde19330a3c1f06eb24802c7503be3 (diff) | |
download | pleroma-6769ecd948c8bd69bc9ba7af7d291142dc062af1.tar.gz pleroma-6769ecd948c8bd69bc9ba7af7d291142dc062af1.zip |
Merge branch 'develop' into fix/dymamic-docs
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -8,7 +8,7 @@ defmodule Pleroma.Mixfile do elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), - elixirc_options: [warnings_as_errors: true], + elixirc_options: [warnings_as_errors: warnings_as_errors(Mix.env())], xref: [exclude: [:eldap]], start_permanent: Mix.env() == :prod, aliases: aliases(), @@ -73,6 +73,11 @@ defmodule Pleroma.Mixfile do defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] + defp warnings_as_errors(:prod), do: false + # Uncomment this if you need testing configurable_from_database logic + # defp warnings_as_errors(:dev), do: false + defp warnings_as_errors(_), do: true + # Specifies OAuth dependencies. defp oauth_deps do oauth_strategy_packages = @@ -166,7 +171,8 @@ defmodule Pleroma.Mixfile do {:captcha, git: "https://git.pleroma.social/pleroma/elixir-libraries/elixir-captcha.git", ref: "e0f16822d578866e186a0974d65ad58cddc1e2ab"}, - {:mox, "~> 0.5", only: :test} + {:mox, "~> 0.5", only: :test}, + {:restarter, path: "./restarter"} ] ++ oauth_deps() end |