Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (74 sloc) 2.29 KB
#
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
defmodule Astarte.TriggerEngine.Mixfile do
use Mix.Project
def project do
[
app: :astarte_trigger_engine,
version: "0.11.0-dev",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
deps: deps() ++ astarte_required_modules(System.get_env("ASTARTE_IN_UMBRELLA"))
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp astarte_required_modules("true") do
[
{:astarte_core, in_umbrella: true},
{:astarte_data_access, in_umbrella: true}
]
end
defp astarte_required_modules(_) do
[
{:astarte_core, github: "astarte-platform/astarte_core"},
{:astarte_data_access, github: "astarte-platform/astarte_data_access"}
]
end
def application do
[
extra_applications: [:logger],
mod: {Astarte.TriggerEngine.Application, []}
]
end
defp deps do
[
{:amqp, "== 1.0.2"},
{:bbmustache, "== 1.5.0"},
{:conform, "== 2.5.2"},
{:cyanide, "~> 0.5"},
{:cqex, github: "matehat/cqex", ref: "a2c45667108f9b1e8a9c73c5250a04020bf72a30"},
{:cqerl,
github: "matehat/cqerl", ref: "6e44b42df1cb0fcf82d8ab4df032c2e7cacb96f9", override: true},
{:httpoison, "== 1.1.1"},
{:poison, "== 3.1.0"},
{:distillery, "== 1.5.2", runtime: false},
{:excoveralls, "== 0.9.1", only: :test},
{:mox, "== 0.3.2", only: :test}
]
end
end
You can’t perform that action at this time.