Current section

Files

Jump to
Raw

mix.exs

defmodule SystemMetrics.Mixfile do
  use Mix.Project

  def project do
    [
      app: :diskusage_logger,
      version: "2.0.0",
      elixir: "~> 1.20",
      description: "A service that logs disk usage each minute",
      build_embedded: Mix.env() == :prod,
      start_permanent: Mix.env() == :prod,
      test_coverage: [tool: ExCoveralls],
      package: package(),
      deps: deps()
    ]
  end

  defp package do
    [
      files: ["lib", "mix.exs", "README*"],
      maintainers: ["Massachusetts Bay Transportation Authority"],
      licenses: ["MIT"],
      links: %{"GitHub" => "https://github.com/mbta/diskusage_logger"}
    ]
  end

  # Configuration for the OTP application
  #
  # Type "mix help compile.app" for more information
  def application do
    [mod: {DiskUsageLogger, []}, extra_applications: [:os_mon, :logger]]
  end

  # Dependencies can be Hex packages:
  #
  #   {:mydep, "~> 0.3.0"}
  #
  # Or git/path repositories:
  #
  #   {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
  #
  # To depend on another app inside the umbrella:
  #
  #   {:myapp, in_umbrella: true}
  #
  # Type "mix help deps" for more examples and options
  defp deps do
    [
      {:dialyxir, "1.4.9", only: [:dev, :test], runtime: false},
      {:ex_doc, "0.40.5", only: :dev, runtime: false},
      {:excoveralls, "0.18.5", only: :test},
      {:sobelow, "0.19.0", only: [:dev, :test], runtime: false}
    ]
  end
end