2017-06-11 15:23:58 +00:00
|
|
|
defmodule RDF.Mixfile do
|
2016-09-30 14:36:50 +00:00
|
|
|
use Mix.Project
|
|
|
|
|
2017-06-24 22:32:50 +00:00
|
|
|
@repo_url "https://github.com/marcelotto/rdf-ex"
|
|
|
|
|
2017-08-10 21:14:34 +00:00
|
|
|
@version File.read!("VERSION") |> String.trim
|
2016-09-30 14:51:59 +00:00
|
|
|
|
2016-09-30 14:36:50 +00:00
|
|
|
def project do
|
2016-09-30 14:51:59 +00:00
|
|
|
[
|
2017-06-11 15:23:58 +00:00
|
|
|
app: :rdf,
|
2016-09-30 14:51:59 +00:00
|
|
|
version: @version,
|
2018-09-04 18:53:14 +00:00
|
|
|
elixir: "~> 1.6",
|
2016-09-30 14:51:59 +00:00
|
|
|
build_embedded: Mix.env == :prod,
|
|
|
|
start_permanent: Mix.env == :prod,
|
2017-06-24 22:32:50 +00:00
|
|
|
deps: deps(),
|
2019-06-09 19:48:03 +00:00
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
2017-06-24 22:32:50 +00:00
|
|
|
|
|
|
|
# Hex
|
2017-02-12 14:42:27 +00:00
|
|
|
package: package(),
|
2017-06-24 22:32:50 +00:00
|
|
|
description: description(),
|
|
|
|
|
|
|
|
# Docs
|
|
|
|
name: "RDF.ex",
|
|
|
|
docs: [
|
|
|
|
main: "RDF",
|
|
|
|
source_url: @repo_url,
|
|
|
|
source_ref: "v#{@version}",
|
2019-04-06 00:24:22 +00:00
|
|
|
extras: ["CHANGELOG.md"],
|
2017-08-11 12:11:37 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
# ExCoveralls
|
|
|
|
test_coverage: [tool: ExCoveralls],
|
|
|
|
preferred_cli_env: [
|
2018-08-10 21:49:22 +00:00
|
|
|
coveralls: :test,
|
2017-08-11 12:11:37 +00:00
|
|
|
"coveralls.detail": :test,
|
|
|
|
"coveralls.post": :test,
|
|
|
|
"coveralls.html": :test
|
|
|
|
],
|
2016-09-30 14:51:59 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2017-06-11 12:29:17 +00:00
|
|
|
defp description do
|
|
|
|
"""
|
|
|
|
An implementation of RDF for Elixir.
|
|
|
|
"""
|
|
|
|
end
|
|
|
|
|
2016-09-30 14:51:59 +00:00
|
|
|
defp package do
|
|
|
|
[
|
|
|
|
maintainers: ["Marcel Otto"],
|
|
|
|
licenses: ["MIT"],
|
2019-04-06 00:24:22 +00:00
|
|
|
links: %{
|
|
|
|
"Homepage" => "https://rdf-elixir.dev",
|
|
|
|
"GitHub" => @repo_url,
|
|
|
|
"Changelog" => @repo_url <> "/blob/master/CHANGELOG.md",
|
|
|
|
},
|
2019-09-23 18:20:19 +00:00
|
|
|
files: ~w[lib src/*.xrl src/*.yrl priv mix.exs .formatter.exs VERSION *.md]
|
2016-09-30 14:51:59 +00:00
|
|
|
]
|
2016-09-30 14:36:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def application do
|
2017-06-25 19:15:55 +00:00
|
|
|
[extra_applications: [:logger]]
|
2016-09-30 14:36:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
defp deps do
|
2016-09-30 14:54:47 +00:00
|
|
|
[
|
2018-06-15 19:19:22 +00:00
|
|
|
{:decimal, "~> 1.5"},
|
|
|
|
|
2017-09-08 16:14:15 +00:00
|
|
|
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false},
|
2019-09-08 16:04:12 +00:00
|
|
|
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
|
|
|
|
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
|
|
|
|
{:excoveralls, "~> 0.11", only: :test},
|
2019-02-16 03:18:27 +00:00
|
|
|
{:inch_ex, "~> 1.0", only: [:dev, :test]},
|
2018-06-15 19:19:22 +00:00
|
|
|
|
2019-04-05 23:42:14 +00:00
|
|
|
{:benchee, "~> 1.0", only: :bench},
|
2017-08-19 20:56:17 +00:00
|
|
|
{:erlang_term, "~> 1.7", only: :bench},
|
2016-09-30 14:54:47 +00:00
|
|
|
]
|
2016-09-30 14:36:50 +00:00
|
|
|
end
|
2019-06-09 19:48:03 +00:00
|
|
|
|
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
2016-09-30 14:36:50 +00:00
|
|
|
end
|