forked from FarmBot/farmbot_os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
49 lines (45 loc) · 1.64 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
defmodule FarmbotSupport.MixProject do
################################################################################
###### WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ######
###### This is not the root mix.exs the farmbot application ######
###### This OTP application is for test support only. ######
###### WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ######
################################################################################
use Mix.Project
@version Path.join([__DIR__, "VERSION"]) |> File.read!() |> String.trim()
@elixir_version Path.join([__DIR__, "ELIXIR_VERSION"]) |> File.read!() |> String.trim()
def project do
[
app: :farmbot_support,
version: @version,
elixir: @elixir_version,
elixirc_options: [warnings_as_errors: true, ignore_module_conflict: true],
start_permanent: Mix.env() == :prod,
elixirc_paths: ["support"],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
test: :test,
coveralls: :test,
"coveralls.circle": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
deps: deps()
]
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
[
{:jason, "~> 1.2.2"},
{:excoveralls, "~> 0.14.2", only: [:test], targets: [:host]},
{:ex_doc, "~> 0.25.3", only: [:dev], targets: [:host], runtime: false}
]
end
end