-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
79 lines (66 loc) · 1.89 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
defmodule Gogs.MixProject do
use Mix.Project
@elixir_requirement "~> 1.9"
def project do
[
app: :gogs,
version: "1.1.0",
elixir: @elixir_requirement,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
c: :test,
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test
],
aliases: aliases(),
deps: deps(),
package: package(),
description: "Simple Elixir interface with a Gogs (Git) Server"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Make HTTP Requests: github.com/edgurgel/httpoison
{:httpoison, "~> 2.2.0"},
# Parse JSON data: github.com/michalmuskala/jason
{:jason, "~> 1.4.0"},
# Check environment variables: github.com/dwyl/envar
{:envar, "~> 1.1.0"},
# Git interface: github.com/danhper/elixir-git-cli
{:git_cli, "~> 0.3"},
# Useful functions: github.com/dwyl/useful
{:useful, "~> 1.14.0"},
# Check test coverage: github.com/parroty/excoveralls
{:excoveralls, "~> 0.18.0", only: :test},
# Create Documentation for publishing Hex.docs:
{:ex_doc, "~> 0.28", only: :dev},
# Keep Code Tidy: https://github.com/rrrene/credo
{:credo, "~> 1.7.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev], runtime: false}
]
end
defp aliases do
[
c: ["coveralls.html"]
]
end
defp package() do
[
files: ~w(lib LICENSE mix.exs README.md test-repo),
name: "gogs",
licenses: ["GPL-2.0-or-later"],
maintainers: ["dwyl"],
links: %{"GitHub" => "https://github.com/dwyl/gogs"}
]
end
end