summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--src/rebar_core.erl4
-rw-r--r--src/rebar_neotoma_compiler.erl8
3 files changed, 10 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 9589806..7af5258 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,6 +11,7 @@ otp_release:
- 17.0
- 18.0
- 19.1
+ - 20.0.2
before_script:
- hostname -f
- cc -v
diff --git a/src/rebar_core.erl b/src/rebar_core.erl
index 6cc8d38..747fe97 100644
--- a/src/rebar_core.erl
+++ b/src/rebar_core.erl
@@ -190,8 +190,8 @@ skip_or_process_dir(Dir, Command, Config, DirSet, CurrentCodePath,
WouldCd);
skip_or_process_dir(Dir, Command, Config, DirSet, CurrentCodePath,
{_, File}=ModuleSet, WouldCd) ->
- case lists:suffix(".app.src", File)
- orelse lists:suffix(".app", File) of
+ case lists:suffix(".app", File)
+ orelse rebar_app_utils:is_app_src(File) of
true ->
%% .app or .app.src file, check if is_skipped_app
skip_or_process_dir1(Dir, Command, Config, DirSet, CurrentCodePath,
diff --git a/src/rebar_neotoma_compiler.erl b/src/rebar_neotoma_compiler.erl
index f93d492..e35dfc4 100644
--- a/src/rebar_neotoma_compiler.erl
+++ b/src/rebar_neotoma_compiler.erl
@@ -78,12 +78,18 @@ clean(Config, _AppFile) ->
%% ============================================================================
info(help, compile) ->
+ info_help("Build Neotoma (*.peg) sources.~n");
+info(help, clean) ->
+ info_help("Delete *.peg build results").
+
+info_help(Description) ->
?CONSOLE(
- "Build Neotoma (*.peg) sources.~n"
+ "~s.~n"
"~n"
"Valid rebar.config options:~n"
" ~p~n",
[
+ Description,
{neotoma_opts, [{doc_root, "src"},
{out_dir, "src"},
{source_ext, ".peg"},