Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
Release 0.2.2 (#138)
Browse files Browse the repository at this point in the history
* Release 0.2.2
* Travis JobID into coveralls
* typo
  • Loading branch information
shamis authored and c-bik committed Sep 13, 2019
1 parent ddd3f42 commit 09734b0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
44 changes: 25 additions & 19 deletions rebar.config.script
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
case os:getenv("ORANIF_DEBUG") of
CONFIG1 = case os:getenv("ORANIF_DEBUG") of
false -> CONFIG; % env var not defined
[] -> CONFIG; % env var set to empty string
DebugLevelStr ->
DebugLevel = list_to_integer(DebugLevelStr),
ErlOpts = proplists:get_value(erl_opts, CONFIG, []),
{CheckErlOpts, Replaced} =
lists:foldl(
fun
({d, 'ORANIF_DEBUG', _}, {Acc, false}) ->
{[{d, 'ORANIF_DEBUG', DebugLevel} | Acc], true};
(Member, {Acc, R}) ->
{[Member | Acc], R}
end, {[], false}, ErlOpts
),
NewErlOpts =
if
Replaced -> CheckErlOpts;
true -> [{d, 'ORANIF_DEBUG', DebugLevel} | CheckErlOpts]
end,
lists:keyreplace(erl_opts, 1, CONFIG, {erl_opts, NewErlOpts})
end.
DebugLevel = list_to_integer(DebugLevelStr),
ErlOpts = proplists:get_value(erl_opts, CONFIG, []),
{CheckErlOpts, Replaced} = lists:foldl(
fun
({d, 'ORANIF_DEBUG', _}, {Acc, false}) ->
{[{d, 'ORANIF_DEBUG', DebugLevel} | Acc], true};
(Member, {Acc, R}) ->
{[Member | Acc], R}
end, {[], false}, ErlOpts
),
NewErlOpts = if
Replaced -> CheckErlOpts;
true -> [{d, 'ORANIF_DEBUG', DebugLevel} | CheckErlOpts]
end,
lists:keyreplace(erl_opts, 1, CONFIG, {erl_opts, NewErlOpts})
end,

case os:getenv("TRAVIS") of
"true" ->
JobId = os:getenv("TRAVIS_JOB_ID"),
lists:keystore(coveralls_service_job_id, 1, CONFIG1,
{coveralls_service_job_id, JobId});
_ -> CONFIG1
end.
3 changes: 1 addition & 2 deletions src/oranif.app.src
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{application, oranif,
[{description, "NIF based driver for Oracle Call Interface"},
{vsn, "0.2.1"},
{vsn, "0.2.2"},
{registered, []},
{applications,
[kernel,
stdlib
]},
{env,[]},
{modules, []},

{maintainers, []},
{licenses, ["Apache 2.0"]},
{links, []}
Expand Down

0 comments on commit 09734b0

Please sign in to comment.