Current section
Files
Jump to
Current section
Files
comparable_decimal
mix.exs
mix.exs
defmodule ComparableDecimal.MixProject do
use Mix.Project
@version (case File.read("VERSION") do
{:ok, version} -> String.trim(version)
{:error, _} -> "0.0.0-development"
end)
def project do
[
app: :comparable_decimal,
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
# excoveralls
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.travis": :test,
"coveralls.circle": :test,
"coveralls.semaphore": :test,
"coveralls.post": :test,
"coveralls.detail": :test,
"coveralls.html": :test
],
# dialyxir
dialyzer: [
ignore_warnings: ".dialyzer_ignore",
plt_add_apps: [
:mix
]
],
# ex_doc
name: "ComparableDecimal",
source_url: "https://github.com/coingaming/comparable_decimal",
homepage_url: "https://github.com/coingaming/comparable_decimal/tree/v#{@version}",
docs: [source_ref: "v#{@version}", main: "readme", extras: ["README.md"]],
# hex.pm stuff
description: "Comparable (Ord) protocol implementation for Decimal type",
package: [
licenses: ["Apache-2.0"],
files: ["lib", "mix.exs", "README.md", "CHANGELOG.md", "VERSION"],
maintainers: ["timCF"],
links: %{
"GitHub" => "https://github.com/coingaming/comparable_decimal/tree/v#{@version}",
"Author's home page" => "https://itkach.uk"
}
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:comparable, "~> 1.0.0"},
{:decimal, "~> 3.0"},
# development tools
{:excoveralls, "~> 0.8", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.19", only: [:dev, :test], runtime: false},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:boilex, "~> 0.2", only: [:dev, :test], runtime: false}
]
end
end