Current section
Files
Jump to
Current section
Files
sparql_client
mix.exs
mix.exs
defmodule SPARQL.Client.Mixfile do
use Mix.Project
@repo_url "https://github.com/rdf-elixir/sparql_client"
@version File.read!("VERSION") |> String.trim()
def project do
[
app: :sparql_client,
version: @version,
elixir: "~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
# Hex
package: package(),
description: description(),
# Docs
name: "SPARQL.Client",
docs: [
main: "SPARQL.Client",
source_url: @repo_url,
source_ref: "v#{@version}",
extras: ["CHANGELOG.md"]
],
# ExVCR
preferred_cli_env: [
vcr: :dev,
"vcr.delete": :dev,
"vcr.check": :dev,
"vcr.show": :dev
],
# ExCoveralls
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
defp description do
"""
A SPARQL client for Elixir.
"""
end
defp package do
[
maintainers: ["Marcel Otto"],
licenses: ["MIT"],
links: %{
"Homepage" => "https://rdf-elixir.dev",
"GitHub" => @repo_url,
"Changelog" => @repo_url <> "/blob/master/CHANGELOG.md"
},
files: ~w[lib mix.exs README.md CHANGELOG.md LICENSE.md VERSION]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:sparql, ">= 0.3.6"},
{:rdf, ">= 0.9.1"},
{:json_ld, ">= 0.3.3"},
{:rdf_xml, "~> 0.1"},
{:tesla, "~> 1.2"},
{:content_type, "~> 0.1"},
{:nimble_options, "~> 0.3"},
# Development
# We now have Hackney as a hard dependency through JSON-LD.ex; we should re-enable this once we got rid of this hard-dependency
# {:hackney, "~> 1.15", only: [:dev, :test]},
{:gun, "~> 1.3", only: [:dev, :test]},
{:mint, "~> 1.2", only: [:dev, :test]},
{:castore, "~> 0.1", only: [:dev, :test]},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:exvcr, "~> 0.12", only: [:dev, :test]},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:excoveralls, "~> 0.13", only: :test}
]
end
defp aliases do
[
integration_test: &integration_test/1
]
end
defp integration_test(_) do
System.put_env("MIX_ENV", "dev")
Mix.Task.run(:test, ["integration_test"])
end
end