X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=mix.exs;h=120092f1bd7fef558e69a7b3e433bf6ca2ba8fc1;hb=7511f3d192bff285d0ca22c03cd9a46fd552cdde;hp=0ae9c3f05ae18461248e4efb162c880ac04d468b;hpb=0e9243e8a28e957f2a9401eb153cc2b27723d0a3;p=akkoma diff --git a/mix.exs b/mix.exs index 0ae9c3f05..120092f1b 100644 --- a/mix.exs +++ b/mix.exs @@ -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"] @@ -221,8 +222,8 @@ defmodule Pleroma.Mixfile do branch_name <- String.trim(branch_name), branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name, true <- - !Enum.all?(["master", "HEAD", "release/", "stable"], fn name -> - name != branch_name + !Enum.any?(["master", "HEAD", "release/", "stable"], fn name -> + String.starts_with?(name, branch_name) end) do branch_name = branch_name