Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsamson committed Feb 14, 2016
1 parent 965d080 commit ac620bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ elixir: 1.2.0
otp_release:
- 18.1
sudo: false
env:
- MIX_ENV=test
before_script:
- MIX_ENV=test mix local.hex --force
- MIX_ENV=test mix deps.get
script:
- mix test
after_script:
- mix coveralls.travis
7 changes: 5 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ defmodule Stackfooter.Mixfile do
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases,
deps: deps]
deps: deps,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test]]
end

# Configuration for the OTP application.
Expand Down Expand Up @@ -38,7 +40,8 @@ defmodule Stackfooter.Mixfile do
{:gettext, "~> 0.9"},
{:cowboy, "~> 1.0"},
{:timex, "~> 1.0.0"},
{:beaker, ">= 1.2.0"}]
{:beaker, ">= 1.2.0"},
{:excoveralls, "~> 0.4", only: :test}]
end

# Aliases are shortcut or tasks specific to the current project.
Expand Down
3 changes: 3 additions & 0 deletions mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
"db_connection": {:hex, :db_connection, "0.2.1"},
"decimal": {:hex, :decimal, "1.1.1"},
"ecto": {:hex, :ecto, "1.1.3"},
"excoveralls": {:hex, :excoveralls, "0.4.6"},
"exjsx": {:hex, :exjsx, "3.2.0"},
"fs": {:hex, :fs, "0.9.2"},
"gettext": {:hex, :gettext, "0.9.0"},
"hackney": {:hex, :hackney, "1.4.8"},
"idna": {:hex, :idna, "1.0.3"},
"jsx": {:hex, :jsx, "2.6.2"},
"mimerl": {:hex, :mimerl, "1.0.2"},
"phoenix": {:hex, :phoenix, "1.1.4"},
"phoenix_ecto": {:hex, :phoenix_ecto, "2.0.1"},
Expand Down

0 comments on commit ac620bf

Please sign in to comment.