Skip to content

Commit 046c588

Browse files
committed
added changes for travis to use coverage
1 parent 8dda1fb commit 046c588

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ before_script:
1616
- mkdir ${PWD}/mongodb/data
1717
- ${PWD}/mongodb/bin/mongod --dbpath ${PWD}/mongodb/data --logpath ${PWD}/mongodb/mongodb.log --fork
1818

19-
script:
20-
- mix local.hex --force
21-
- mix local.rebar --force
22-
- mix deps.get
23-
- mix coveralls.travis
24-
2519
env:
20+
- MIX_ENV=test
2621
matrix:
2722
- MONGODB=3.2.20
2823
- MONGODB=3.4.16
2924
- MONGODB=3.6.6
3025
- MONGODB=ubuntu1604-v4.2-latest
26+
27+
script:
28+
- mix local.hex --force
29+
- mix local.rebar --force
30+
- mix deps.get
31+
- mix coveralls.travis

mix.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ defmodule Mongodb.Mixfile do
1313
docs: docs(),
1414
description: description(),
1515
package: package(),
16-
test_coverage: [tool: ExCoveralls],
17-
preferred_cli_env: [docs: :docs, coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test],
18-
dialyzer: [
16+
test_coverage: [tool: ExCoveralls],
17+
preferred_cli_env: [docs: :docs, coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test],
18+
dialyzer: [
1919
flags: [:underspecs, :unknown, :unmatched_returns],
2020
plt_add_apps: [:logger, :connection, :db_connection, :mix, :elixir, :ssl, :public_key],
2121
plt_add_deps: :transitive,

0 commit comments

Comments
 (0)