This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
forked from bzzt/bigtable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
132 lines (120 loc) · 3.02 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
defmodule Bigtable.MixProject do
use Mix.Project
alias Bigtable.{Admin, Connection}
@version "0.7.0"
def project do
[
app: :bigtable,
version: @version,
package: package(),
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
name: "Bigtable",
homepage_url: "https://github.com/bzzt/bigtable",
source_url: "https://github.com/bzzt/bigtable",
deps: deps(),
docs: docs(),
aliases: aliases(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
"coveralls.json": :test,
"coveralls.html": :test,
coverage: :test
]
]
end
defp package() do
[
description: "Elixir client library for Google Bigtable.",
maintainers: ["Jason Scott", "Philip Prophet", "Daniel Fredriksson"],
licenses: ["MIT"],
links: %{github: "https://github.com/bzzt/bigtable"}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Bigtable, []},
extra_applications: [:logger, :grpc, :poolboy]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[
source_ref: "v#{@version}",
extra_section: "GUIDES",
main: "overview",
formatters: ["html", "epub"],
groups_for_modules: groups_for_modules(),
extras: extras(),
groups_for_extras: groups_for_extras(),
nest_modules_by_prefix: [
Bigtable.ChunkReader
]
]
end
defp extras do
[
"guides/introduction/overview.md",
"guides/introduction/installation.md"
]
end
defp groups_for_extras do
[
Introduction: ~r/guides\/introduction\/.?/
]
end
defp groups_for_modules do
[
Admin: [
Admin.GcRule,
Admin.Modification,
Admin.Table,
Admin.TableAdmin
],
Connection: [
Connection
],
Data: [
Bigtable.CheckAndMutateRow,
Bigtable.ChunkReader,
Bigtable.ChunkReader.ReadCell,
Bigtable.MutateRow,
Bigtable.MutateRows,
Bigtable.Mutations,
Bigtable.ReadModifyWriteRow,
Bigtable.ReadRows,
Bigtable.RowFilter,
Bigtable.RowSet,
Bigtable.SampleRowKeys
]
]
end
defp aliases do
[
coverage: [
"coveralls.json"
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:google_protos, "~> 0.1"},
{:goth, "~> 0.11.0"},
{:grpc, "~> 0.3.1"},
{:lens, "~> 0.8.0"},
{:poison, "~> 3.1"},
{:poolboy, "~> 1.5"},
{:protobuf, "~> 0.6.3"},
# Dev Deps
{:credo, "~> 1.0.0", only: [:dev, :test, :ci], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev], runtime: false},
{:excoveralls, "~> 0.10", only: [:dev, :test, :ci]},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:mix_test_watch, "~> 0.8", only: :dev, runtime: false}
]
end
end