farmbot_os/config/host/test.exs

47 lines
1.2 KiB
Elixir
Raw Normal View History

use Mix.Config
cond do
2017-12-11 20:28:35 -07:00
System.get_env("CIRCLECI") ->
2017-12-11 20:58:42 -07:00
Mix.shell.info [:green, "Using circle ci config."]
2017-12-11 20:28:35 -07:00
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
2017-10-11 16:53:00 -06:00
config :farmbot, data_path: "test_tmp/"
2017-09-18 18:42:55 -06:00
2017-09-26 11:45:55 -06:00
config :farmbot, :init, [
Farmbot.Host.Bootstrap.Configurator,
2017-09-26 11:45:55 -06:00
]
# Transports.
2017-12-05 11:16:48 -07:00
config :farmbot, :transport, [
2018-07-10 15:03:11 -06:00
Farmbot.BotState.Transport.Test,
Farmbot.BotState.Transport.Registry,
2017-12-05 11:16:48 -07:00
]
config :farmbot, :farmware, first_part_farmware_manifest_url: nil
2017-10-11 16:53:00 -06:00
config :farmbot, :behaviour,
authorization: Farmbot.Bootstrap.Authorization,
2017-11-29 23:18:52 -07:00
system_tasks: Farmbot.Test.SystemTasks,
2018-11-21 17:20:11 -07:00
update_handler: FarmbotTestSupport.TestUpdateHandler,
nerves_hub_handler: Farmbot.Host.NervesHubHandler
2017-09-19 13:34:41 -06:00
2018-04-05 09:36:14 -06:00
config :farmbot, Farmbot.Repo, [
adapter: Sqlite.Ecto2,
2018-04-04 15:31:57 -06:00
database: "test_tmp/farmbot_repo_test",
priv: "priv/repo",
2018-05-16 12:34:21 -06:00
loggers: []
2018-04-05 09:36:14 -06:00
]
2018-04-05 09:36:14 -06:00
config :farmbot, Farmbot.System.ConfigStorage, [
adapter: Sqlite.Ecto2,
2017-12-01 20:08:07 -07:00
database: "test_tmp/farmbot_config_storage_test",
2018-05-16 12:34:21 -06:00
loggers: []
2018-04-05 09:36:14 -06:00
]
2017-10-19 11:29:15 -06:00
2018-04-04 15:31:57 -06:00
config :farmbot, ecto_repos: [Farmbot.Repo, Farmbot.System.ConfigStorage]