Merge pull request #74 from ImmaculatePine/fix-travis-config

Fix TravisCI configuration
This commit is contained in:
Daniel Berkompas 2019-07-02 09:49:19 -07:00 committed by GitHub
commit 20ba9fbc28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View file

@ -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
View 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