diff options
author | Jordan Bracco <href@random.sh> | 2025-06-25 16:55:29 +0200 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2025-06-25 16:55:29 +0200 |
commit | b96891912bb6018079de52187370aabe2c9227a9 (patch) | |
tree | 2d5da2599740d168d2057696cae221220d530eaa /mix.exs | |
parent | fix self => self() (diff) |
remove sentry
Diffstat (limited to '')
-rw-r--r-- | mix.exs | 42 |
1 files changed, 23 insertions, 19 deletions
@@ -6,9 +6,9 @@ defmodule Nola.Mixfile do app: :nola, version: version("0.2.7"), elixir: "~> 1.4", - elixirc_paths: elixirc_paths(Mix.env), - compilers: [:phoenix, :gettext] ++ Mix.compilers, - start_permanent: Mix.env == :prod, + elixirc_paths: elixirc_paths(Mix.env()), + compilers: [:phoenix, :gettext] ++ Mix.compilers(), + start_permanent: Mix.env() == :prod, deps: deps() ] end @@ -21,7 +21,7 @@ defmodule Nola.Mixfile do end defp elixirc_paths(:test), do: ["lib", "test/support"] - defp elixirc_paths(_), do: ["lib"] + defp elixirc_paths(_), do: ["lib"] defp aliases do [ @@ -69,14 +69,15 @@ defmodule Nola.Mixfile do {:html_entities, "0.4.0", override: true}, {:file_size, "~> 3.0"}, {:ex2ms, "~> 1.0"}, - {:polyjuice_client, git: "https://git.random.sh/ircbot/polyjuice_client.git", branch: "master", override: true}, - {:matrix_app_service, git: "https://git.random.sh/ircbot/matrix_app_service.ex.git", branch: "master"}, - {:sentry, "~> 8.0.5"}, + {:polyjuice_client, + git: "https://git.random.sh/ircbot/polyjuice_client.git", branch: "master", override: true}, + {:matrix_app_service, + git: "https://git.random.sh/ircbot/matrix_app_service.ex.git", branch: "master"}, {:logger_json, "~> 4.3"}, {:oauth2, "~> 2.0"}, {:powerdnsex, git: "https://git.random.sh/ircbot/powerdnsex.git", branch: "master"}, {:pfx, "~> 0.7.0"}, - {:flake_id, "~> 0.1.0"}, + {:flake_id, "~> 0.1.0"} ] end @@ -84,22 +85,25 @@ defmodule Nola.Mixfile do {describe, 0} = System.cmd("git", ~w(describe --dirty --broken --all --tags --long)) [_, rest] = String.split(describe, "/", parts: 2) - info = rest - |> String.trim() - |> String.replace("/", "-") - env = cond do - Mix.env() == :prod -> "" - true -> "." <> to_string(Mix.env()) - end + info = + rest + |> String.trim() + |> String.replace("/", "-") - build_timestamp = DateTime.utc_now() - |> DateTime.to_unix() - |> to_string() + env = + cond do + Mix.env() == :prod -> "" + true -> "." <> to_string(Mix.env()) + end + + build_timestamp = + DateTime.utc_now() + |> DateTime.to_unix() + |> to_string() build_date_tag = ".build" <> build_timestamp v <> "+" <> info <> env <> build_date_tag end - end |