defmodule Wsdataselect.MixProject do use Mix.Project def project do [ app: :wsdataselect, version: "1.1.21", elixir: "~> 1.18", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, aliases: aliases(), deps: deps(), package: package(), description: "Implementation of the FDSN dataselect webservice for Epos-France seismological datacenter", source_url: "https://gricad-gitlab.univ-grenoble-alpes.fr/OSUG/RESIF/wsdataselect", homepage_url: "https://gricad-gitlab.univ-grenoble-alpes.fr/OSUG/RESIF/wsdataselect", test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test, "coveralls.cobertura": :test ], dialyzer: [ ignore_warnings: ".dialyzer_ignore.exs", plt_file: {:no_warn, "priv/plts/project.plt"} ], versioning: versioning(), listeners: [Phoenix.CodeReloader] ] end def versioning do [ annotate: true, annotation: "new version %s", commit_msg: "new version %s", tag_prefix: "v" ] end defp package do [ licenses: ["GPL-3.0-or-later"], links: %{ "FDSN webservices" => "https://www.fdsn.org/webservices/", "Epos-France seismological data center" => "https://seisdata.epos-france.fr" } ] end # Configuration for the OTP application. # # Type `mix help compile.app` for more information. def application do [ mod: {Wsdataselect.Application, []}, extra_applications: [:logger, :runtime_tools] ] end def cli do [ preferred_envs: [precommit: :test] ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] # Specifies your project dependencies. # # Type `mix help deps` for examples and options. defp deps do [ {:phoenix, "~> 1.8.0"}, {:phoenix_ecto, "~> 4.5"}, {:ecto_sql, "~> 3.13"}, {:postgrex, ">= 0.0.0"}, {:phoenix_live_dashboard, "~> 0.8.3"}, {:swoosh, "~> 1.16"}, {:req, "~> 0.5"}, {:telemetry_metrics, "~> 1.0"}, {:telemetry_poller, "~> 1.0"}, {:jason, "~> 1.4"}, {:dns_cluster, "~> 0.2.0"}, {:bandit, "~> 1.8"}, ### Sentry and traces support {:sentry, "~> 11.0.4"}, {:opentelemetry, "~> 1.5"}, {:opentelemetry_api, "~> 1.4"}, {:opentelemetry_exporter, "~> 1.0"}, {:opentelemetry_semantic_conventions, "~> 1.27"}, {:opentelemetry_phoenix, "~> 2.0"}, {:opentelemetry_ecto, "~> 1.2"}, {:opentelemetry_bandit, "~> 0.3.0"}, ### ### {:ex_aws, "~> 2.0"}, {:ex_aws_s3, "~> 2.0"}, {:sweet_xml, "~> 0.6"}, {:hackney, "~> 1.9"}, {:cachex, "~> 4.0"}, {:ua_parser, "~> 1.9.3"}, {:httpoison, "~> 2.2.3"}, {:geohash, "~> 1.0"}, {:graceful_stop, "~> 0.2.2"}, {:fdsn_plugs, "~> 0.8.3"}, {:locus, "~> 2.3"}, {:remote_ip, "~> 1.2.0"}, {:open_api_spex, "~> 3.21"}, {:ex_doc, "~> 0.20", only: :dev, runtime: false}, {:ex_machina, "~> 2.8.0", only: [:test]}, {:junit_formatter, "~> 3.4", only: [:test]}, {:excoveralls, "~> 0.18.1", only: [:test]}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:mix_version, "~> 2.5", only: [:dev], runtime: false}, {:credo, ">= 0.0.0", only: [:dev, :test]} # {:flame_on, git: "https://github.com/DockYard/flame_on", branch: "main", only: [:dev]} ] end # Aliases are shortcuts or tasks specific to the current project. # For example, to install project dependencies and perform other setup tasks, run: # # $ mix setup # # See the documentation for `Mix` for more info on aliases. defp aliases do [ setup: ["deps.get", "ecto.setup"], "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"], "ecto.reset": ["ecto.drop", "ecto.setup"], test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"], precommit: ["compile --warning-as-errors", "deps.unlock --unused", "format", "test"] ] end end