core: mix_test_watch config and environment-dependent config files
This commit is contained in:
parent
b0b7657ffa
commit
068539e825
5 changed files with 13 additions and 29 deletions
|
@ -1,30 +1,3 @@
|
||||||
# This file is responsible for configuring your application
|
|
||||||
# and its dependencies with the aid of the Mix.Config module.
|
|
||||||
use Mix.Config
|
use Mix.Config
|
||||||
|
|
||||||
# This configuration is loaded before any dependency and is restricted
|
import_config "#{Mix.env}.exs"
|
||||||
# to this project. If another project depends on this project, this
|
|
||||||
# file won't be loaded nor affect the parent project. For this reason,
|
|
||||||
# if you want to provide default values for your application for
|
|
||||||
# 3rd-party users, it should be done in your "mix.exs" file.
|
|
||||||
|
|
||||||
# You can configure for your application as:
|
|
||||||
#
|
|
||||||
# config :rdf_core, key: :value
|
|
||||||
#
|
|
||||||
# And access this configuration in your application as:
|
|
||||||
#
|
|
||||||
# Application.get_env(:rdf_core, :key)
|
|
||||||
#
|
|
||||||
# Or configure a 3rd-party app:
|
|
||||||
#
|
|
||||||
# config :logger, level: :info
|
|
||||||
#
|
|
||||||
|
|
||||||
# It is also possible to import configuration files, relative to this
|
|
||||||
# directory. For example, you can emulate configuration per environment
|
|
||||||
# by uncommenting the line below and defining dev.exs, test.exs and such.
|
|
||||||
# Configuration from the imported file will override the ones defined
|
|
||||||
# here (which is why it is important to import them last).
|
|
||||||
#
|
|
||||||
# import_config "#{Mix.env}.exs"
|
|
||||||
|
|
9
config/dev.exs
Normal file
9
config/dev.exs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use Mix.Config
|
||||||
|
|
||||||
|
config :mix_test_watch,
|
||||||
|
clear: true,
|
||||||
|
tasks: [
|
||||||
|
"test",
|
||||||
|
"dialyzer",
|
||||||
|
"credo",
|
||||||
|
]
|
1
config/prod.exs
Normal file
1
config/prod.exs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use Mix.Config
|
1
config/test.exs
Normal file
1
config/test.exs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use Mix.Config
|
2
mix.exs
2
mix.exs
|
@ -37,7 +37,7 @@ defmodule RDF.Core.Mixfile do
|
||||||
|
|
||||||
defp deps do
|
defp deps do
|
||||||
[
|
[
|
||||||
{:dialyxir, "~> 0.3.5", only: [:dev]},
|
{:dialyxir, "~> 0.3.5", only: [:dev, :test]},
|
||||||
{:credo, "~> 0.4", only: [:dev, :test]},
|
{:credo, "~> 0.4", only: [:dev, :test]},
|
||||||
{:ex_doc, "~> 0.14.1", only: :dev},
|
{:ex_doc, "~> 0.14.1", only: :dev},
|
||||||
{:mix_test_watch, "~> 0.2", only: :dev},
|
{:mix_test_watch, "~> 0.2", only: :dev},
|
||||||
|
|
Loading…
Reference in a new issue