Merge pull request #74 from ImmaculatePine/fix-travis-config
Fix TravisCI configuration
This commit is contained in:
commit
20ba9fbc28
2 changed files with 20 additions and 1 deletions
|
|
@ -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
config/travis.exs
Normal file
16
config/travis.exs
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue