2017-09-12 10:51:31 -06:00
|
|
|
use Mix.Config
|
|
|
|
|
2017-12-04 12:09:30 -07:00
|
|
|
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")
|
2017-12-04 12:09:30 -07:00
|
|
|
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")
|
2017-09-12 10:51:31 -06:00
|
|
|
end
|
2017-10-11 16:53:00 -06:00
|
|
|
|
2017-10-26 10:25:47 -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, [
|
2017-10-18 12:31:18 -06:00
|
|
|
Farmbot.Host.Bootstrap.Configurator,
|
2017-09-26 11:45:55 -06:00
|
|
|
]
|
2017-09-12 10:51:31 -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
|
|
|
]
|
2017-09-12 10:51:31 -06:00
|
|
|
|
2017-12-05 13:33:15 -07:00
|
|
|
config :farmbot, :farmware, first_part_farmware_manifest_url: nil
|
|
|
|
|
2017-10-11 16:53:00 -06:00
|
|
|
config :farmbot, :behaviour,
|
2017-10-26 10:25:47 -06:00
|
|
|
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, [
|
2017-10-26 10:25:47 -06:00
|
|
|
adapter: Sqlite.Ecto2,
|
2018-04-04 15:31:57 -06:00
|
|
|
database: "test_tmp/farmbot_repo_test",
|
2017-09-21 11:39:39 -06:00
|
|
|
priv: "priv/repo",
|
2018-05-16 12:34:21 -06:00
|
|
|
loggers: []
|
2018-04-05 09:36:14 -06:00
|
|
|
]
|
2017-09-21 11:39:39 -06:00
|
|
|
|
2018-04-05 09:36:14 -06:00
|
|
|
config :farmbot, Farmbot.System.ConfigStorage, [
|
2017-10-26 10:25:47 -06:00
|
|
|
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]
|