Skip to content

Commit

Permalink
Updated travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondboswel committed Oct 27, 2017
1 parent f8845f7 commit 753a93a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ language: elixir
elixir: '1.5.2'
otp_release: '19.0'
addons:
mariadb: '10.0'
services: mariadb
postgresql: '9.5'
services:
- postgresql
env:
- MIX_ENV=test
before_script:
- cp config/travis.exs config/test.exs
- mix do ecto.create, ecto.migrate
script: mix coveralls.travis
before_install:
- mysql -e 'CREATE DATABASE amnesia_api_test;'

19 changes: 19 additions & 0 deletions config/travis.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
use Mix.Config

# We don't run a server during test. If one is required,
# you can enable the server option below.
config :amnesia_api, AmnesiaApiWeb.Endpoint,
http: [port: 4001],
server: false

# Print only warnings and errors during test
config :logger, level: :warn

# Configure your database
config :amnesia_api, AmnesiaApi.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "",
database: "amnesia_api_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox

0 comments on commit 753a93a

Please sign in to comment.