Skip to content

Commit

Permalink
Merge 9f76573 into a555559
Browse files Browse the repository at this point in the history
  • Loading branch information
bearmug committed Jan 30, 2019
2 parents a555559 + 9f76573 commit 1493ac6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 10 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
cache:
directories:
- ./_build/plt

language: erlang

otp_release:
- 21.0

script:
- make code-checks
- make test
- make test
- make cover
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ clean:
compile:
$(REBAR) compile

cover:
$(REBAR) as test cover --min_coverage=100 -v
$(REBAR) as test coveralls send

test: compile
$(REBAR) do ct -v
$(REBAR) as test do ct -v

code-checks: compile
$(REBAR) dialyzer
Expand Down
2 changes: 1 addition & 1 deletion README-hidden.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/bearmug/oleg-migrations.svg?branch=master)](https://travis-ci.org/bearmug/oleg-migrations)
[![Build Status](https://travis-ci.org/bearmug/oleg-migrations.svg?branch=master)](https://travis-ci.org/bearmug/oleg-migrations) [![Coverage Status](https://coveralls.io/repos/github/bearmug/erlang-pure-migrations/badge.svg?branch=master)](https://coveralls.io/github/bearmug/erlang-pure-migrations?branch=master)

- [Erlang ❤ pure Postgres migrations](#erlang---pure-postgres-migrations)
* [Quick start](#quick-start)
Expand Down
21 changes: 14 additions & 7 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{eunit_opts, [verbose]}.

{cover_enabled, true}.
{cover_print_enabled, true}.

{profiles, [
{test, [
{deps, [
{erlexec, {git, "https://github.com/saleyn/erlexec.git", {ref, "576fb5d"}}}
]}
]},
{eunit_opts , [verbose]},
{cover_enabled , true},
{cover_print_enabled , true},
{cover_export_enabled , true},
{coveralls_coverdata , "_build/test/cover/ct.coverdata"},
{coveralls_service_name , "travis-ci"},
{plugins , [coveralls]}
]},
{lint, [
{plugins, [rebar3_lint]}
Expand All @@ -25,4 +27,9 @@
{elvis_style, state_record_and_type, disable} % epgsql_sock
]}
]
}.
}.

{dialyzer,
[
{plt_location, "_build/plt"}
]}.
7 changes: 7 additions & 0 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
case os:getenv("TRAVIS") of
"true" ->
JobId = os:getenv("TRAVIS_JOB_ID"),
lists:keystore(coveralls_service_job_id, 1, CONFIG, {coveralls_service_job_id, JobId});
_ ->
CONFIG
end.

0 comments on commit 1493ac6

Please sign in to comment.