2015-01-07 01:44:59 +00:00
|
|
|
defmodule Thrift.Mixfile do
|
|
|
|
use Mix.Project
|
|
|
|
|
2016-11-15 23:56:12 +00:00
|
|
|
@version "1.3.1"
|
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
|
|
|
|
[app: :thrift,
|
2016-01-19 02:20:00 +00:00
|
|
|
version: @version,
|
2016-06-21 15:56:00 +00:00
|
|
|
elixir: "~> 1.2",
|
2016-12-09 18:12:01 +00:00
|
|
|
deps: deps(),
|
2016-01-19 02:20:00 +00:00
|
|
|
|
|
|
|
# Build Environment
|
2016-12-09 19:17:08 +00:00
|
|
|
erlc_paths: ["src", "ext/thrift/lib/erl/src"],
|
2015-01-07 01:44:59 +00:00
|
|
|
erlc_include_path: "ext/thrift/lib/erl/include",
|
2016-06-09 16:17:38 +00:00
|
|
|
compilers: [:leex, :yecc, :erlang, :elixir, :app],
|
2016-01-19 02:20:00 +00:00
|
|
|
|
|
|
|
# Testing
|
2016-01-05 04:33:19 +00:00
|
|
|
test_coverage: [tool: ExCoveralls],
|
|
|
|
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test],
|
2016-01-19 02:20:00 +00:00
|
|
|
|
|
|
|
# URLs
|
|
|
|
source_url: @project_url,
|
|
|
|
homepage_url: @project_url,
|
|
|
|
|
|
|
|
# Hex
|
2016-12-09 18:12:01 +00:00
|
|
|
description: description(),
|
|
|
|
package: package(),
|
2016-02-02 18:34:09 +00:00
|
|
|
|
|
|
|
# Docs
|
|
|
|
name: "Thrift",
|
2016-12-09 19:12:04 +00:00
|
|
|
docs: [
|
|
|
|
main: "readme",
|
|
|
|
extras: ["README.md": [group: "Documents", title: "README"]],
|
|
|
|
extra_section: "Overview",
|
|
|
|
source_ref: @version,
|
|
|
|
source_url: @project_url]]
|
2015-01-07 01:44:59 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def application do
|
2016-01-05 04:33:19 +00:00
|
|
|
[]
|
|
|
|
end
|
|
|
|
|
2016-01-19 02:20:00 +00:00
|
|
|
defp deps do
|
2016-12-09 19:12:04 +00:00
|
|
|
[{:ex_doc, "~> 0.14", only: :dev},
|
2016-10-18 20:14:35 +00:00
|
|
|
{:excoveralls, "~> 0.5.7", only: :test},
|
2016-12-23 20:41:32 +00:00
|
|
|
{:credo, "~> 0.5", only: [:dev, :test]},
|
2016-12-09 19:17:08 +00:00
|
|
|
{:dialyxir, "~> 0.4.0", only: [:dev, :test]}
|
2016-06-09 16:17:38 +00:00
|
|
|
]
|
2016-01-05 04:33:19 +00:00
|
|
|
end
|
|
|
|
|
2016-01-19 02:20:00 +00:00
|
|
|
defp description do
|
2016-01-05 04:33:19 +00:00
|
|
|
"""
|
2016-01-19 02:20:00 +00:00
|
|
|
A collection of utilities for working with Thrift in Elixir.
|
2016-01-05 04:33:19 +00:00
|
|
|
|
2016-05-30 00:44:05 +00:00
|
|
|
Provides a copy of the Apache Thrift Erlang runtime.
|
2016-01-19 02:20:00 +00:00
|
|
|
"""
|
2016-01-05 04:33:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
defp package do
|
2016-01-19 02:20:00 +00:00
|
|
|
[maintainers: ["Jon Parise", "Steve Cohen"],
|
2016-01-05 04:33:19 +00:00
|
|
|
licenses: ["Apache 2.0"],
|
2016-01-19 02:20:00 +00:00
|
|
|
links: %{"GitHub" => @project_url},
|
2016-02-02 22:04:45 +00:00
|
|
|
files: ~w(README.md LICENSE mix.exs lib) ++
|
|
|
|
~w(ext/thrift/CHANGES ext/thrift/LICENSE ext/thrift/NOTICE) ++
|
|
|
|
~w(ext/thrift/README.md ext/thrift/doc ext/thrift/lib/erl) ++
|
2016-06-09 16:17:38 +00:00
|
|
|
~w(src/thrift_lexer.xrl src/thrift_parser.yrl)
|
|
|
|
]
|
2015-01-07 01:44:59 +00:00
|
|
|
end
|
|
|
|
end
|