-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmix.exs
44 lines (39 loc) · 1.01 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
defmodule Stemmer.Mixfile do
use Mix.Project
def project do
[
app: :stemmer,
version: "1.2.0",
elixir: "~> 1.12",
name: "Stemmer",
package: package(),
description: "An English (Porter2) stemming implementation in Elixir.",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test],
aliases: [publish: ["hex.publish", &git_tag/1]]
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.14", only: :test, runtime: false}
]
end
defp package do
[
maintainers: ["Fred Wu"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/fredwu/stemmer"}
]
end
defp git_tag(_args) do
System.cmd("git", ["tag", "v" <> Mix.Project.config()[:version]])
System.cmd("git", ["push"])
System.cmd("git", ["push", "--tags"])
end
end