Skip to content

Commit

Permalink
Resolve dialyzer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danielberkompas committed Dec 14, 2015
1 parent c138636 commit e4a44e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
language: elixir
elixir:
- 1.0.3
- 1.0.4
- 1.1.1
otp_release:
- 17.4
- 18.0
before_script:
- export PATH=`pwd`/elixir/bin:$PATH
- export PLT_FILENAME=elixir-${TRAVIS_ELIXIR_VERSION}_$TRAVIS_OTP_RELEASE.plt
- export PLT_LOCATION=/home/travis/$PLT_FILENAME
- wget -O $PLT_LOCATION https://raw.github.com/danielberkompas/travis_elixir_plts/master/$PLT_FILENAME
- mix local.hex --force
- mix deps.get --only test
script:
- mix test
- dialyzer --no_check_plt --plt $PLT_LOCATION -Wno_match -Wno_return --no_native _build/test/lib/ex_twiml/ebin
after_script:
- MIX_ENV=docs mix deps.get
- MIX_ENV=docs mix inch.report
- MIX_ENV=docs mix deps.get
- MIX_ENV=docs mix inch.report
1 change: 1 addition & 0 deletions lib/ex_twiml/reserved_name_error.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ defmodule ExTwiml.ReservedNameError do
defexception [:message]

@doc false
@spec exception(list) :: %__MODULE__{}
def exception([{name, context, _}, file_name]) do
file_name = Path.relative_to_cwd(file_name)
name = to_string(name)
Expand Down

0 comments on commit e4a44e1

Please sign in to comment.