Current section

Files

Jump to
Raw

mix.exs

defmodule IncidentIo.Mixfile do
use Mix.Project
@source_url "https://github.com/sgerrand/ex_incident_io"
@version "0.3.0"
def project do
[
app: :incident_io,
version: @version,
elixir: "~> 1.15",
name: "IncidentIo",
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
package: package(),
deps: deps(),
docs: docs()
]
end
def application do
[]
end
def cli do
[preferred_envs: [coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:req, "~> 0.5"},
{:jason, "~> 1.2"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.5", only: :test},
{:plug, "~> 1.0"},
{:mox, "~> 1.0", only: :test}
]
end
defp package do
[
description: "An Elixir client for the incident.io API.",
maintainers: ["Sasha Gerrand"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "https://hexdocs.pm/incident_io/changelog.html"
}
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
extras: [
"CHANGELOG.md": [title: "Changelog"],
LICENSE: [title: "License"],
"README.md": [title: "Overview"]
],
formatters: ["html"],
groups_for_modules: [
Core: [
IncidentIo,
IncidentIo.Client,
IncidentIo.Json,
IncidentIo.Pagination,
IncidentIo.Query
],
Alerts: [~r/IncidentIo\.Alert/],
Catalog: [~r/IncidentIo\.Catalog/],
"Custom Fields": [~r/IncidentIo\.CustomField/],
Incidents: [~r/IncidentIo\.Incident/],
"On-Call": [~r/IncidentIo\.(EscalationPath|MaintenanceWindow|Schedule)/],
Other: [~r/IncidentIo\./]
]
]
end
end