Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #118 from davisp/feature-add-rebar3-support
Add support for rebar3
- Loading branch information
Showing
11 changed files
with
297 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
.eunit | ||
.rebar | ||
.jiffy.dev | ||
*.app | ||
*.beam | ||
*.d | ||
*.o | ||
*.so | ||
_build | ||
compile_commands.json | ||
deps | ||
erln8.config | ||
hexer.config | ||
rebar.lock | ||
TEST-*.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,18 @@ | ||
% This file is part of Jiffy released under the MIT license. | ||
% See the LICENSE file for more information. | ||
|
||
% Only include PropEr as a dependency when the JIFFY_DEV | ||
% environment variable is defined. This allows downstream | ||
% applications to avoid requiring PropEr. | ||
% | ||
% This script is based on the example provided with Rebar. | ||
|
||
ErlOpts = [{d, 'JIFFY_DEV'}], | ||
% Only run the EQC checks when EQC is present. | ||
|
||
Proper = [ | ||
{proper, ".*", {git, "git://github.com/manopapad/proper.git", "master"}} | ||
], | ||
HaveEQC = code:which(eqc) =/= non_existing, | ||
|
||
ConfigPath = filename:dirname(SCRIPT), | ||
DevMarker = filename:join([ConfigPath, ".jiffy.dev"]), | ||
ErlOpts = if not HaveEQC -> []; true -> | ||
[{d, 'HAVE_EQC'}] | ||
end, | ||
|
||
case filelib:is_file(DevMarker) of | ||
true -> | ||
% Don't override existing dependencies | ||
Config0 = case lists:keyfind(deps, 1, CONFIG) of | ||
false -> | ||
CONFIG ++ [{deps, Proper}]; | ||
{deps, DepsList} -> | ||
lists:keyreplace(deps, 1, CONFIG, {deps, DepsList ++ Proper}) | ||
end, | ||
Config1 = case lists:keyfind(erl_opts, 1, Config0) of | ||
false -> | ||
Config0 ++ [{erl_opts, ErlOpts}]; | ||
{erl_opts, Opts} -> | ||
NewOpts = {erl_opts, Opts ++ ErlOpts}, | ||
lists:keyreplace(erl_opts, 1, Config0, NewOpts) | ||
end; | ||
case lists:keyfind(erl_opts, 1, CONFIG) of | ||
{erl_opts, Opts} -> | ||
NewOpts = {erl_opts, Opts ++ ErlOpts}, | ||
lists:keyreplace(erl_opts, 1, CONFIG, NewOpts); | ||
false -> | ||
CONFIG | ||
CONFIG ++ [{erl_opts, ErlOpts}] | ||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.