Skip to content

Commit

Permalink
A little mix.exs reorganization and cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jparise committed Jan 19, 2016
1 parent 33b0c3f commit c708045
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions mix.exs
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

0 comments on commit c708045

Please sign in to comment.