diff --git a/.travis.yml b/.travis.yml index c6c9221..058a623 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,3 +4,6 @@ elixir: otp_release: - 18.2.1 services: postgresql +env: + - MIX_ENV=test +script: mix coveralls.travis diff --git a/mix.exs b/mix.exs index 9065385..8acea3d 100644 --- a/mix.exs +++ b/mix.exs @@ -7,6 +7,8 @@ defmodule Loggex.Mixfile do elixir: "~> 1.2", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, + test_coverage: [tool: ExCoveralls], + preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test], deps: deps] end @@ -34,8 +36,10 @@ defmodule Loggex.Mixfile do {:exjsx, "~> 3.2"}, {:postgrex, ">= 0.0.0"}, {:ecto, "~> 1.1.2"}, + {:hackney, ~r/.*/, [git: "git://github.com/benoitc/hackney.git", branch: "master", manager: :rebar, override: true]}, {:elixometer, github: "atlantaelixir/elixometer", override: true}, - {:uuid, "~> 0.1.1"} + {:uuid, "~> 0.1.1"}, + {:excoveralls, "~> 0.4", only: :test} ] end end diff --git a/mix.lock b/mix.lock index 380cf32..5eb9cc0 100644 --- a/mix.lock +++ b/mix.lock @@ -1,4 +1,4 @@ -%{"certifi": {:hex, :certifi, "0.3.0"}, +%{"certifi": {:git, "https://github.com/certifi/erlang-certifi", "3e86db680c8b7194c84832fbd6d438158f171996", [tag: "0.4.0"]}, "connection": {:hex, :connection, "1.0.2"}, "cowboy": {:hex, :cowboy, "1.0.4"}, "cowlib": {:hex, :cowlib, "1.0.2"}, @@ -7,22 +7,25 @@ "ecto": {:hex, :ecto, "1.1.3"}, "edown": {:git, "https://github.com/uwiger/edown.git", "b7c8eb0ac1859f8fce11cbfe3526f5ec83194776", [tag: "0.7"]}, "elixometer": {:git, "https://github.com/atlantaelixir/elixometer.git", "2d5ed891d8a7fbdcd3e2c53d1798ffee02304998", []}, + "excoveralls": {:hex, :excoveralls, "0.5.1"}, "exjsx": {:hex, :exjsx, "3.2.0"}, "exometer": {:git, "https://github.com/PSPDFKit-labs/exometer.git", "fc367682a809ccd463a907e6e00e52d6d354c83f", []}, "exometer_core": {:git, "https://github.com/PSPDFKit-labs/exometer_core.git", "ccc18cf0328692756fd9b837a88823cf979da8e1", []}, "exometer_influxdb": {:git, "https://github.com/atlantaelixir/exometer_influxdb.git", "cff4797529d42211f86d6bf3f865a6683176527e", []}, "goldrush": {:git, "git://github.com/DeadZen/goldrush.git", "71e63212f12c25827e0c1b4198d37d5d018a7fec", [tag: "0.1.6"]}, - "hackney": {:hex, :hackney, "1.4.8"}, + "hackney": {:git, "git://github.com/benoitc/hackney.git", "32f092df1e920f36de65f3ae802fc1d34cc0ec4d", [branch: "master"]}, "httpoison": {:hex, :httpoison, "0.8.1"}, - "idna": {:hex, :idna, "1.0.3"}, + "idna": {:git, "https://github.com/benoitc/erlang-idna", "40c682fef283b7c3871c4b59aa0469304c6613ef", [tag: "1.2.0"]}, "jsx": {:hex, :jsx, "2.6.2"}, "lager": {:git, "https://github.com/basho/lager.git", "840acab51ebfb731de0137d9c6d41e7db4a12793", [tag: "2.1.0"]}, - "mimerl": {:hex, :mimerl, "1.0.2"}, + "metrics": {:git, "https://github.com/benoitc/erlang-metrics", "c6eb4dcf29f9e907539915e2ab996f40c2ec7e8e", [tag: "1.0.1"]}, + "mimerl": {:git, "https://github.com/benoitc/mimerl", "678aba028a690da6822c87410d475841c048b6bf", [tag: "1.0.2"]}, "parse_trans": {:git, "git://github.com/uwiger/parse_trans.git", "82cc00264aa1bad8fc5c0739b7541feb4a843432", [tag: "2.9"]}, "plug": {:hex, :plug, "1.1.1"}, "poolboy": {:hex, :poolboy, "1.5.1"}, "postgrex": {:hex, :postgrex, "0.11.1"}, "ranch": {:hex, :ranch, "1.2.1"}, "setup": {:git, "git://github.com/uwiger/setup.git", "51ee7c9f64d2bbe9dcbb58c278e8fbfd4d0ca5e2", [tag: "1.4"]}, + "ssl_verify_fun": {:git, "https://github.com/deadtrickster/ssl_verify_fun.erl", "e76d93737dea126a030f4ed153f158b2139961e3", [tag: "1.1.0"]}, "ssl_verify_hostname": {:hex, :ssl_verify_hostname, "1.0.5"}, "uuid": {:hex, :uuid, "0.1.5"}}