2015-01-07 01:44:59 +00:00
|
|
|
defmodule Thrift.Mixfile do
|
2017-02-07 20:11:03 +00:00
|
|
|
@moduledoc false
|
2015-01-07 01:44:59 +00:00
|
|
|
use Mix.Project
|
|
|
|
|
2016-12-31 00:09:25 +00:00
|
|
|
@description """
|
|
|
|
Elixir implementation of the Thrift service framework
|
|
|
|
|
|
|
|
This package includes support for parsing Thrift IDL files, working with the
|
|
|
|
Thrift binary protocol, and building high-performance clients and servers.
|
|
|
|
"""
|
|
|
|
|
|
|
|
@version "2.0.0-dev"
|
2016-01-19 02:20:00 +00:00
|
|
|
@project_url "https://github.com/pinterest/elixir-thrift"
|
|
|
|
|
2015-01-07 01:44:59 +00:00
|
|
|
def project do
|
2018-07-30 00:08:22 +00:00
|
|
|
[
|
|
|
|
app: :thrift,
|
|
|
|
version: @version,
|
|
|
|
elixir: "~> 1.3",
|
|
|
|
deps: deps(),
|
2016-01-19 02:20:00 +00:00
|
|
|
|
2018-07-30 00:08:22 +00:00
|
|
|
# Build Environment
|
|
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
|
|
compilers: [:leex, :yecc, :erlang, :elixir, :app],
|
2016-01-19 02:20:00 +00:00
|
|
|
|
2018-07-30 00:08:22 +00:00
|
|
|
# Testing
|
|
|
|
test_coverage: [tool: ExCoveralls],
|
|
|
|
preferred_cli_env: [
|
|
|
|
coveralls: :test,
|
|
|
|
"coveralls.detail": :test,
|
|
|
|
"coveralls.html": :test,
|
|
|
|
"coveralls.post": :test
|
|
|
|
],
|
2016-01-19 02:20:00 +00:00
|
|
|
|
2018-07-30 00:08:22 +00:00
|
|
|
# URLs
|
|
|
|
source_url: @project_url,
|
|
|
|
homepage_url: @project_url,
|
2016-01-19 02:20:00 +00:00
|
|
|
|
2018-07-30 00:08:22 +00:00
|
|
|
# Hex
|
|
|
|
description: @description,
|
|
|
|
package: package(),
|
2016-02-02 18:34:09 +00:00
|
|
|
|
2018-07-30 00:08:22 +00:00
|
|
|
# Dialyzer
|
|
|
|
dialyzer: [
|
|
|
|
plt_add_deps: :transitive,
|
|
|
|
plt_add_apps: [:mix],
|
|
|
|
ignore_warnings: ".dialyzerignore"
|
|
|
|
],
|
2016-12-30 21:12:41 +00:00
|
|
|
|
2018-07-30 00:08:22 +00:00
|
|
|
# Docs
|
|
|
|
name: "Thrift",
|
|
|
|
docs: [
|
|
|
|
main: "README",
|
|
|
|
extras: ["README.md": [title: "README"]],
|
|
|
|
source_url: @project_url
|
|
|
|
]
|
|
|
|
]
|
2015-01-07 01:44:59 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def application do
|
2016-12-25 01:29:44 +00:00
|
|
|
[
|
2018-07-30 00:08:22 +00:00
|
|
|
applications: [:logger, :connection, :ranch, :ssl]
|
2016-12-25 01:29:44 +00:00
|
|
|
]
|
2016-01-05 04:33:19 +00:00
|
|
|
end
|
|
|
|
|
2016-12-30 22:34:17 +00:00
|
|
|
defp elixirc_paths(:test), do: ["lib", "test/support/lib"]
|
2018-07-30 00:08:22 +00:00
|
|
|
defp elixirc_paths(_), do: ["lib"]
|
2016-11-30 19:31:59 +00:00
|
|
|
|
2016-01-19 02:20:00 +00:00
|
|
|
defp deps do
|
2018-07-30 00:08:22 +00:00
|
|
|
[
|
|
|
|
{:ex_doc, "~> 0.19", only: :dev},
|
2018-06-13 19:10:27 +00:00
|
|
|
{:excoveralls, "~> 0.9", only: [:dev, :test]},
|
2018-07-29 18:51:19 +00:00
|
|
|
{:credo, "~> 0.10", only: [:dev, :test]},
|
2017-03-06 17:07:40 +00:00
|
|
|
{:dialyxir, "~> 0.5", only: :dev, runtime: false},
|
2016-12-25 01:29:44 +00:00
|
|
|
{:connection, "~> 1.0"},
|
2018-07-30 00:08:22 +00:00
|
|
|
{:ranch, "~> 1.5"}
|
|
|
|
]
|
2016-01-05 04:33:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
2018-07-30 00:08:22 +00:00
|
|
|
[
|
|
|
|
maintainers: ["Jon Parise", "Steve Cohen", "Preston Guillory"],
|
2016-01-05 04:33:19 +00:00
|
|
|
licenses: ["Apache 2.0"],
|
2016-01-19 02:20:00 +00:00
|
|
|
links: %{"GitHub" => @project_url},
|
2018-07-30 00:08:22 +00:00
|
|
|
files: ~w(README.md LICENSE mix.exs lib) ++ ~w(src/thrift_lexer.xrl src/thrift_parser.yrl)
|
|
|
|
]
|
2015-01-07 01:44:59 +00:00
|
|
|
end
|
|
|
|
end
|