-
Notifications
You must be signed in to change notification settings - Fork 37
/
mix.exs
66 lines (57 loc) · 1.61 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
defmodule Riffed.Mixfile do
use Mix.Project
@project_url "https://github.com/pinterest/riffed"
def project do
[app: :riffed,
name: "Riffed",
version: "1.0.0",
elixir: "~> 1.2",
deps: deps(),
compilers: compilers(Mix.env),
erlc_paths: ["src", "ext/thrift/lib/erl/src"],
erlc_include_path: "ext/thrift/lib/erl/include",
thrift_files: Mix.Utils.extract_files(["thrift"], [:thrift]),
docs: [output: "doc/generated"],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test],
# Hex
description: description(),
package: package(),
source_url: @project_url,
homepage_url: @project_url
]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger, :thrift]]
end
def compilers(:test) do
[:thrift | Mix.compilers]
end
def compilers(_) do
Mix.compilers
end
defp deps do
[
{:thrift, "~> 1.3"},
{:meck, "~> 0.8.2", only: [:test, :dev]},
{:mock, github: "jjh42/mock", only: [:test, :dev]},
{:ex_doc, "~> 0.14", only: :dev},
{:excoveralls, "~> 0.6", only: [:dev, :test]}
]
end
defp description do
"""
Riffed Provides idiomatic Elixir bindings for Apache Thrift
"""
end
defp package do
[files: ["config", "lib", "test", "thrift", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Jon Parise", "Steve Cohen"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => @project_url}
]
end
end