Skip to content

Commit

Permalink
travis, mix: add coveralls config
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhercaz committed May 9, 2020
1 parent 83d9102 commit 164e3a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
language: elixir
elixir: "1.9.4"
otp_release: "22.3"
env:
- MIX_ENV=test
script: mix coveralls.travis
12 changes: 10 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ defmodule ExTldr.MixProject do
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: [main_module: ExTldr, name: "extldr"]
escript: [main_module: ExTldr, name: "extldr"],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end

Expand All @@ -29,7 +36,8 @@ defmodule ExTldr.MixProject do
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:httpoison, "~> 1.6"}
{:httpoison, "~> 1.6"},
{:excoveralls, "~> 0.12.3", only: :test}
]
end
end

0 comments on commit 164e3a7

Please sign in to comment.