Added a test (written by @andrewzah) for the MR
[akkoma] / mix.exs
1 defmodule Pleroma.Mixfile do
2 use Mix.Project
3
4 def project do
5 [
6 app: :pleroma,
7 version: "0.9.0",
8 elixir: "~> 1.4",
9 elixirc_paths: elixirc_paths(Mix.env()),
10 compilers: [:phoenix, :gettext] ++ Mix.compilers(),
11 start_permanent: Mix.env() == :prod,
12 aliases: aliases(),
13 deps: deps()
14 ]
15 end
16
17 # Configuration for the OTP application.
18 #
19 # Type `mix help compile.app` for more information.
20 def application do
21 [mod: {Pleroma.Application, []}, extra_applications: [:logger, :runtime_tools, :comeonin]]
22 end
23
24 # Specifies which paths to compile per environment.
25 defp elixirc_paths(:test), do: ["lib", "test/support"]
26 defp elixirc_paths(_), do: ["lib"]
27
28 # Specifies your project dependencies.
29 #
30 # Type `mix help deps` for examples and options.
31 defp deps do
32 [
33 {:phoenix, "~> 1.3.0"},
34 {:phoenix_pubsub, "~> 1.0"},
35 {:phoenix_ecto, "~> 3.2"},
36 {:postgrex, ">= 0.0.0"},
37 {:gettext, "~> 0.11"},
38 {:cowboy, "~> 1.0", override: true},
39 {:comeonin, "~> 3.0"},
40 {:trailing_format_plug, "~> 0.0.5"},
41 {:html_sanitize_ex, "~> 1.3.0-rc1"},
42 {:phoenix_html, "~> 2.10"},
43 {:calendar, "~> 0.16.1"},
44 {:cachex, "~> 2.1"},
45 {:httpoison, "~> 1.1.0"},
46 {:jason, "~> 1.0"},
47 {:ex_machina, "~> 2.0", only: :test},
48 {:credo, "~> 0.7", only: [:dev, :test]},
49 {:mock, "~> 0.3.0", only: :test}
50 ]
51 end
52
53 # Aliases are shortcuts or tasks specific to the current project.
54 # For example, to create, migrate and run the seeds file at once:
55 #
56 # $ mix ecto.setup
57 #
58 # See the documentation for `Mix` for more info on aliases.
59 defp aliases do
60 [
61 "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
62 "ecto.reset": ["ecto.drop", "ecto.setup"],
63 test: ["ecto.create --quiet", "ecto.migrate", "test"]
64 ]
65 end
66 end