Last active
May 28, 2018 09:59
-
-
Save lee-dohm/90ce34920acfc378793a55185a5834b5 to your computer and use it in GitHub Desktop.
Sample files for blog post "Simpler Elixir Travis Configuration" ... http://www.lee-dohm.com/2017/12/24/simpler-elixir-travis-configuration/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mix.Config | |
# We don't run a server during test. If one is required, | |
# you can enable the server option below. | |
config :hello_phoenix, HelloPhoenix.Endpoint, | |
http: [port: 4001], | |
server: false | |
# Print only warnings and errors during test | |
config :logger, level: :warn | |
# Configure your database | |
config :hello_phoenix, HelloPhoenix.Repo, | |
adapter: Ecto.Adapters.Postgres, | |
username: "postgres", | |
password: "postgres", | |
database: "hello_phoenix_test", | |
hostname: "localhost", | |
pool: Ecto.Adapters.SQL.Sandbox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mix.Config | |
# We don't run a server during test. If one is required, | |
# you can enable the server option below. | |
config :hello_phoenix, HelloPhoenix.Endpoint, | |
http: [port: 4001], | |
server: false | |
# Print only warnings and errors during test | |
config :logger, level: :warn | |
# Configure your database | |
config :hello_phoenix, HelloPhoenix.Repo, | |
adapter: Ecto.Adapters.Postgres, | |
username: "postgres", | |
password: "", | |
database: "hello_phoenix_test", | |
hostname: "localhost", | |
pool: Ecto.Adapters.SQL.Sandbox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mix.Config | |
config :hello_phoenix, HelloPhoenix.Repo, | |
password: "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mix.config | |
# Other configuration goes here | |
import_config "#{Mix.env}.exs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Mix.Config | |
# We don't run a server during test. If one is required, | |
# you can enable the server option below. | |
config :hello_phoenix, HelloPhoenix.Endpoint, | |
http: [port: 4001], | |
server: false | |
# Print only warnings and errors during test | |
config :logger, level: :warn | |
# Configure your database | |
config :hello_phoenix, HelloPhoenix.Repo, | |
adapter: Ecto.Adapters.Postgres, | |
username: "postgres", | |
password: "postgres", | |
database: "hello_phoenix_test", | |
hostname: "localhost", | |
pool: Ecto.Adapters.SQL.Sandbox | |
# Customize the test environment for CI systems | |
if System.get_env("CI") == "true", do: import_config "ci.exs" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment