diff options
| author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-08 19:59:37 +0300 |
|---|---|---|
| committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-02-08 19:59:37 +0300 |
| commit | 4e6bbdc7b549e630141cb10d383a42055f06dc16 (patch) | |
| tree | d0675328c7fc75f612eab779289afabee27a40a8 /mix.exs | |
| parent | d458f4fdcafe847a7db8b1c663cfd945019816b7 (diff) | |
| parent | 964b4d82a0cde5b552b6210400c5e2c747a2f0e0 (diff) | |
| download | pleroma-4e6bbdc7b549e630141cb10d383a42055f06dc16.tar.gz pleroma-4e6bbdc7b549e630141cb10d383a42055f06dc16.zip | |
Merge remote-tracking branch 'remotes/origin/develop' into 1505-threads-federation
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 |
