47 lines
1.2 KiB
Elixir
47 lines
1.2 KiB
Elixir
use Mix.Config
|
|
|
|
cond do
|
|
System.get_env("CIRCLECI") ->
|
|
Mix.shell.info [:green, "Using circle ci config."]
|
|
import_config("auth_secret_ci.exs")
|
|
File.exists?("config/host/auth_secret_test.exs") ->
|
|
import_config("auth_secret_test.exs")
|
|
true ->
|
|
Mix.raise("You need to configure your test environment.\r\n")
|
|
end
|
|
|
|
config :farmbot, data_path: "test_tmp/"
|
|
|
|
config :farmbot, :init, [
|
|
Farmbot.Host.Bootstrap.Configurator,
|
|
]
|
|
|
|
# Transports.
|
|
config :farmbot, :transport, [
|
|
Farmbot.BotState.Transport.Test,
|
|
Farmbot.BotState.Transport.Registry,
|
|
]
|
|
|
|
config :farmbot, :farmware, first_part_farmware_manifest_url: nil
|
|
|
|
config :farmbot, :behaviour,
|
|
authorization: Farmbot.Bootstrap.Authorization,
|
|
system_tasks: Farmbot.Test.SystemTasks,
|
|
update_handler: FarmbotTestSupport.TestUpdateHandler,
|
|
nerves_hub_handler: Farmbot.Host.NervesHubHandler
|
|
|
|
config :farmbot, Farmbot.Repo, [
|
|
adapter: Sqlite.Ecto2,
|
|
database: "test_tmp/farmbot_repo_test",
|
|
priv: "priv/repo",
|
|
loggers: []
|
|
]
|
|
|
|
config :farmbot, Farmbot.System.ConfigStorage, [
|
|
adapter: Sqlite.Ecto2,
|
|
database: "test_tmp/farmbot_config_storage_test",
|
|
loggers: []
|
|
]
|
|
|
|
config :farmbot, ecto_repos: [Farmbot.Repo, Farmbot.System.ConfigStorage]
|