-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
105 lines (94 loc) · 2.72 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
defmodule Lti1p3EctoProvider.MixProject do
use Mix.Project
def project do
[
app: :lti_1p3_ecto_provider,
version: "0.6.0",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: elixirc_options(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
test: :test,
"test.watch": :test,
"test.ecto.reset": :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.xml": :test
],
package: package(),
description: description(),
name: "Lti 1p3 Ecto Provider",
docs: docs()
]
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
[
{:excoveralls, "~> 0.10", only: :test},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:ecto_sql, "~> 3.10"},
{:httpoison, "~> 2.0"},
{:lti_1p3, "~> 0.6.0"},
{:mox, "~> 0.5", only: :test},
{:postgrex, ">= 0.0.0"},
{:timex, "~> 3.5"},
{:uuid, "~> 1.1"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp elixirc_options(:dev), do: []
defp elixirc_options(:test), do: []
defp elixirc_options(_), do: [warnings_as_errors: true]
defp description do
"""
An Ecto-based DataProvider implementation for the Lti_1p3 library
"""
end
defp package do
[
files: ["lib", "priv", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Open Learning Initiative"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/Simon-Initiative/lti_1p3_ecto_provider"}
]
end
defp docs() do
[
main: "readme",
extras: [
"README.md"
]
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
"ecto.seed": ["run priv/repo/seeds.exs"],
"ecto.setup": ["ecto.create", "ecto.migrate", "ecto.seed"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["test"],
# runs tests in deterministic order, only shows one failure at a time and reruns tests if any changes are made
"test.watch": ["test.watch --stale --max-failures 1 --trace --seed 0"],
# resets the database in the :test env
"test.ecto.reset": ["ecto.reset"]
]
end
end