aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Rascao <[email protected]>2016-09-20 18:52:32 +0100
committerLuis Rascao <[email protected]>2016-09-21 22:25:58 +0100
commit44b19a63adaf8eea6ac805b619f5c8897ecd26a1 (patch)
tree950cba89805de83ad350d97ffff52492cc6ea4d6
parentc8714a596bd0b7fcec028474eec23938e5fb421c (diff)
downloadrelx-44b19a63adaf8eea6ac805b619f5c8897ecd26a1.tar.gz
relx-44b19a63adaf8eea6ac805b619f5c8897ecd26a1.tar.bz2
relx-44b19a63adaf8eea6ac805b619f5c8897ecd26a1.zip
Add proper configuration enabling coverage analysis
Fetch latest stable rebar3
-rw-r--r--.travis.yml3
-rw-r--r--cover.spec7
-rw-r--r--rebar.config12
-rwxr-xr-xrebar3bin516921 -> 0 bytes
4 files changed, 17 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 0dfe502..73e1eef 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,9 @@ otp_release:
- 17.0
- R16B03-1
- R15B03
+before_script:
+ - wget https://s3.amazonaws.com/rebar3/rebar3
+ - chmod +x rebar3
script: "./rebar3 update && ./rebar3 ct"
branches:
only:
diff --git a/cover.spec b/cover.spec
index d0efd51..502f55c 100644
--- a/cover.spec
+++ b/cover.spec
@@ -1,6 +1,9 @@
%% -*- mode: Erlang; fill-column: 80; comment-column: 75; -*-
{incl_app, relx}.
{level, details}.
+{incl_dirs_r, ["src", "test"]}.
{excl_mods, [bin_dtl, erl_script_dtl, extended_bin_dtl,
- install_upgrade_escript_dtl, nodetool_dtl,
- sys_config_dtl, vm_args_dtl]}.
+ extended_bin_windows_dtl, erl_ini_dtl,
+ bin_windows_dtl, nodetool_dtl,
+ install_upgrade_escript_dtl, nodetool_dtl,
+ sys_config_dtl, vm_args_dtl, relx]}.
diff --git a/rebar.config b/rebar.config
index 618d8d7..677975a 100644
--- a/rebar.config
+++ b/rebar.config
@@ -46,6 +46,12 @@
{override, providers, [{erl_opts, [no_debug_info]}]}
]}.
-{ct_opts, [{cover_spec, "cover.spec"},
- {cover_enabled, true},
- {cover_print_enabled, true}]}.
+{ct_opts, [{cover_spec, "cover.spec"}]}.
+
+{cover_enabled, true}.
+{cover_print_enabled, true}.
+{cover_excl_mods, [bin_dtl, erl_script_dtl, extended_bin_dtl,
+ extended_bin_windows_dtl, erl_ini_dtl,
+ bin_windows_dtl, nodetool_dtl,
+ install_upgrade_escript_dtl, nodetool_dtl,
+ sys_config_dtl, vm_args_dtl, relx, rlx_topo]}.
diff --git a/rebar3 b/rebar3
deleted file mode 100755
index 992eb02..0000000
--- a/rebar3
+++ /dev/null
Binary files differ