95 lines
No EOL
2.2 KiB
Elixir
95 lines
No EOL
2.2 KiB
Elixir
defmodule Elasticsearch.Mixfile do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :elasticsearch,
|
|
description: "Elasticsearch without DSLs",
|
|
source_url: "https://github.com/infinitered/elasticsearch-elixir",
|
|
version: "0.1.0",
|
|
elixir: "~> 1.5",
|
|
start_permanent: Mix.env() == :prod,
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
test_coverage: [tool: ExCoveralls],
|
|
preferred_cli_env: [
|
|
coveralls: :test,
|
|
"coveralls.detail": :test,
|
|
"coveralls.post": :test,
|
|
"coveralls.html": :test,
|
|
"coveralls.semaphore": :test
|
|
],
|
|
docs: docs(),
|
|
deps: deps(),
|
|
package: package()
|
|
]
|
|
end
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
def application do
|
|
[
|
|
extra_applications: [:logger],
|
|
mod: {Elasticsearch.Application, []}
|
|
]
|
|
end
|
|
|
|
def package do
|
|
[
|
|
files: ~w(
|
|
lib
|
|
CHANGELOG.md
|
|
LICENSE
|
|
README.md
|
|
mix.exs
|
|
),
|
|
maintainers: ["Daniel Berkompas"],
|
|
licenses: ["MIT"],
|
|
links: %{
|
|
"GitHub" => "https://github.com/infinitered/elasticsearch-elixir"
|
|
}
|
|
]
|
|
end
|
|
|
|
# Specifies which paths to compile per environment
|
|
defp elixirc_paths(env) when env in ~w(test dev)a, do: ["lib", "test/support"]
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
defp deps do
|
|
[
|
|
{:poison, ">= 0.0.0", optional: true},
|
|
{:httpoison, ">= 0.0.0"},
|
|
{:dialyze, ">= 0.0.0", only: [:dev, :test]},
|
|
{:ex_doc, ">= 0.0.0", only: [:dev, :test]},
|
|
{:excoveralls, ">= 0.0.0", only: :test}
|
|
]
|
|
end
|
|
|
|
defp docs do
|
|
[
|
|
main: "README",
|
|
extras: ["README.md"],
|
|
groups_for_modules: [
|
|
API: [
|
|
Elasticsearch,
|
|
Elasticsearch.API,
|
|
Elasticsearch.API.HTTP
|
|
],
|
|
Config: [
|
|
Elasticsearch.Config
|
|
],
|
|
Indexing: [
|
|
Elasticsearch.Index,
|
|
Elasticsearch.Index.Bulk
|
|
],
|
|
Storage: [
|
|
Elasticsearch.DataStream,
|
|
Elasticsearch.Document,
|
|
Elasticsearch.Store
|
|
],
|
|
Development: [
|
|
Elasticsearch.Executable
|
|
]
|
|
]
|
|
]
|
|
end
|
|
end |