-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A little mix.exs reorganization and cleanup.
- Loading branch information
Showing
1 changed file
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,54 @@ | ||
defmodule Thrift.Mixfile do | ||
use Mix.Project | ||
|
||
@version "1.0.0" | ||
@project_url "https://github.com/pinterest/elixir-thrift" | ||
|
||
def project do | ||
[app: :thrift, | ||
version: "1.0.0", | ||
description: "Thrift utilities for Elixir", | ||
version: @version, | ||
elixir: "~> 1.0", | ||
description: description, | ||
source_url: project_url, | ||
homepage_url: project_url, | ||
package: package, | ||
deps: deps, | ||
|
||
# Build Environment | ||
erlc_paths: ["ext/thrift/lib/erl/src"], | ||
erlc_include_path: "ext/thrift/lib/erl/include", | ||
compilers: [:erlang, :elixir, :app], | ||
|
||
# Testing | ||
test_coverage: [tool: ExCoveralls], | ||
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test], | ||
|
||
# URLs | ||
source_url: @project_url, | ||
homepage_url: @project_url, | ||
|
||
# Hex | ||
description: description, | ||
package: package, | ||
] | ||
end | ||
|
||
def application do | ||
[] | ||
end | ||
|
||
defp description do | ||
""" | ||
elixir-thrift contains a set of useful utilities to work with Thrift in Elixir. Erlang Thrift runtime library is embedded. | ||
""" | ||
defp deps do | ||
[{:excoveralls, github: "parroty/excoveralls", tag: "v0.4.3", override: true, only: :test}] | ||
end | ||
|
||
defp project_url do | ||
""" | ||
https://github.com/pinterest/elixir-thrift | ||
defp description do | ||
""" | ||
end | ||
A collection of utilities for working with Thrift in Elixir. | ||
defp deps do | ||
[{:excoveralls, github: "parroty/excoveralls", tag: "v0.4.3", override: true, only: :test}] | ||
Provides a copy of the Erlang Thrift runtime. | ||
""" | ||
end | ||
|
||
defp package do | ||
[files: ["ext", "lib", "mix.exs", "README.md", "LICENSE"], | ||
maintainers: ["Jon Parise", "Steve Cohen"], | ||
[maintainers: ["Jon Parise", "Steve Cohen"], | ||
licenses: ["Apache 2.0"], | ||
links: %{"GitHub" => project_url}] | ||
links: %{"GitHub" => @project_url}, | ||
files: ["ext", "lib", "mix.exs", "README.md", "LICENSE"]] | ||
end | ||
end |