defmodule BoltSips.Mixfile do
use Mix.Project
@version "2.0.7"
@url_docs "https://hexdocs.pm/bolt_sips"
@url_github "https://github.com/florinpatrascu/bolt_sips"
def project do
[
app: :bolt_sips,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
description: "Neo4j driver for Elixir, using the fast Bolt protocol",
name: "Bolt.Sips",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
docs: [
name: "Bolt.Sips",
logo: "assets/bolt_sips_white_transparent.png",
assets: "assets",
source_ref: "v#{@version}",
source_url: @url_github,
main: "Bolt.Sips",
extra_section: "guides",
extras: [
"README.md",
"CHANGELOG.md",
"docs/getting-started.md",
"docs/features/configuration.md",
"docs/features/using-cypher.md",
"docs/features/using-temporal-and-spatial-types.md",
"docs/features/about-transactions.md",
"docs/features/about-encoding.md",
"docs/features/routing.md",
"docs/features/multi-tenancy.md",
"docs/features/using-with-phoenix.md"
]
],
dialyzer: [plt_add_apps: [:jason, :poison, :mix], ignore_warnings: ".dialyzer_ignore.exs"],
test_coverage: [
tool: ExCoveralls
],
preferred_cli_env: [
bench: :bench,
credo: :dev,
bolt_sips: :test,
coveralls: :test,
"coveralls.html": :test,
"coveralls.travis": :test
],
aliases: aliases()
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[
applications: [
:logger,
:calendar,
:db_connection
]
]
end
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
test: [
"test --exclude bolt_v1 --exclude routing --exclude boltkit --exclude enterprise"
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
%{
files: [
"lib",
"mix.exs",
"LICENSE"
],
licenses: ["Apache 2.0"],
maintainers: [
"Florin T.PATRASCU",
"Dmitriy Nesteryuk",
"Dominique VASSARD",
"Kristof Semjen"
],
links: %{
"Docs" => @url_docs,
"Github" => @url_github
}
}
end
# Type "mix help deps" for more examples and options
defp deps do
[
{:db_connection, "~> 2.2"},
{:calendar, "~> 0.17.2"},
{:jason, "~> 1.1"},
{:poison, "~> 3.1"},
# Testing dependencies
{:excoveralls, "~> 0.12", optional: true, only: [:test, :dev]},
{:mix_test_watch, "~> 0.9", only: [:dev, :test]},
{:porcelain, "~> 2.0", only: [:test, :dev], runtime: false},
{:uuid, "~> 1.1.8", only: [:test, :dev], runtime: false},
# Benchmarking dependencies
{:benchee, "~> 1.0", optional: true, only: [:dev, :test]},
{:benchee_html, "~> 1.0", optional: true, only: [:dev]},
# Linting dependencies
{:credo, "~> 1.2.1", only: [:dev]},
{:dialyxir, "~> 1.0.0-rc.7", only: [:dev], runtime: false},
# mix eye_drops
{:eye_drops, github: "florinpatrascu/eye_drops", only: [:dev, :test], runtime: false},
# Documentation dependencies
# Run me like this: `mix docs`
{:ex_doc, "~> 0.21", only: :dev, runtime: false}
]
end
end