Skip to content

Commit

Permalink
Merge 419820b into 1a7bbe7
Browse files Browse the repository at this point in the history
  • Loading branch information
ImmaculatePine committed Jul 1, 2019
2 parents 1a7bbe7 + 419820b commit a3a27d9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -11,9 +11,12 @@ env:
- ELASTICSEARCH_VERSION=6.5.2
services:
- elasticsearch
- postgresql
before_install:
- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ELASTICSEARCH_VERSION}.deb && sudo dpkg -i --force-confnew elasticsearch-${ELASTICSEARCH_VERSION}.deb && sudo service elasticsearch restart
before_script:
- sleep 10
- cp config/travis.exs config/config.exs
- mix do ecto.create, ecto.migrate
script:
- bin/setup
- bin/setup
16 changes: 16 additions & 0 deletions config/travis.exs
@@ -0,0 +1,16 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config

config :elasticsearch, Elasticsearch.Test.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "",
database: "elasticsearch_test",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox,
priv: "test/support/"

config :elasticsearch, ecto_repos: [Elasticsearch.Test.Repo]

config :logger, level: :debug

0 comments on commit a3a27d9

Please sign in to comment.