diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-10-21 14:19:15 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-10-21 14:19:15 +0700 |
commit | 4ea1a61b008c932bc83fcd6cd07bb7f4c251204a (patch) | |
tree | c763bd3a2a21ee3e40384ee323076bbb577b7ccb /mix.exs | |
parent | 8ad015ef64e0d2a4cd9f2979ff08d28be3a635e5 (diff) | |
parent | 62e3d76a450c1b34ba8d0c88a184ec861ed90f29 (diff) | |
download | pleroma-4ea1a61b008c932bc83fcd6cd07bb7f4c251204a.tar.gz pleroma-4ea1a61b008c932bc83fcd6cd07bb7f4c251204a.zip |
Merge branch 'develop' into refactor/following-relationships
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -4,7 +4,7 @@ defmodule Pleroma.Mixfile do def project do [ app: :pleroma, - version: version("1.0.0"), + version: version("1.1.50"), elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), @@ -69,6 +69,7 @@ defmodule Pleroma.Mixfile do end # Specifies which paths to compile per environment. + defp elixirc_paths(:benchmark), do: ["lib", "benchmarks"] defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] @@ -220,7 +221,10 @@ defmodule Pleroma.Mixfile do with {branch_name, 0} <- System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]), branch_name <- String.trim(branch_name), branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name, - true <- branch_name not in ["master", "HEAD"] do + true <- + !Enum.any?(["master", "HEAD", "release/", "stable"], fn name -> + String.starts_with?(name, branch_name) + end) do branch_name = branch_name |> String.trim() |