Skip to content

Commit

Permalink
Use config/test.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Apr 18, 2024
1 parent a58a6b8 commit 9206330
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
# Dev logs
/log/

/config/dev.exs
/config/test.exs
/config/prod.exs
# /config/dev.exs
# /config/test.exs
# /config/prod.exs

# Ignore .fetch files in case you like to edit your project deps locally.
/.fetch
Expand Down
42 changes: 42 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import Config

config :file_config,
data_dirs: ["/var/foo/data"],
state_dir: "/var/foo/state",
check_delay: 10_000,
files: [
foo_file: %{
# file: name of file or regex
file: "foo.csv",
# name: name of table, defaults to key
# format: :csv, # csv | bert | dat, default from extension
# handler: name of module to handle update, default from format
data_parser: FileConfig.DataParser.Json
},
foo_config: %{
file: "foo_config.bert"
},
foo_db: %{
file: "foo_db.csv",
csv_fields: {2, 3},
data_parser: FileConfig.DataParser.Json,
handler: FileConfig.Handler.CsvRocksdb,
chunk_size: 1000
}
]

config :logger,
level: :warning,
always_evaluate_messages: true

config :logger, :default_formatter,
format: "$time $metadata[$level] $message\n",
metadata: [:file, :line]

config :junit_formatter,
report_dir: "#{Mix.Project.build_path()}/junit-reports",
automatic_create_dir?: true,
print_report_file: true,
# prepend_project_name?: true,
include_filename?: true,
include_file_line?: true

0 comments on commit 9206330

Please sign in to comment.