-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
550 additions
and
56 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Providing a custom dependency .appup.src file | ||
|
||
There is sometimes the need to provide `.appup` files for external dependencies. | ||
|
||
A lot of the times it's not possible to timely integrate the `.appup` pull requests for them, maybe you're not bumping to the latest version and the maintainer is not willing to create a support branch just for you. | ||
|
||
The plugin offers a way out of this by searching not only the application's `appup.src` files but others as well, it then processes them as usual and moves to the dependency directory which goes through he usual release upgrade procedure. | ||
|
||
Your application will be the one maintaining the `.appup.src` files of dependencies that it's interested in generating release upgrades from, you just keep them alonsing your own `.appup.src`, the name of the file must match the name of the dependency. | ||
|
||
You can find an example of this in the [relapp test release](https://github.com/lrascao/relapp1/commit/488b9501d88166ee9792e14ee676469f790384f1), in this case `relapp1` is maintaining a `statsderl.appup.src` file that will be processed and copied to the output of the `statsderl` application: | ||
|
||
``` | ||
{ "0.5.2", | ||
[{ <<".*">>, | ||
[{restart_application, statsderl}] | ||
}], | ||
[{ <<".*">>, | ||
[{restart_application, statsderl}] | ||
}] | ||
}. | ||
``` | ||
|
||
Here we're saying that to move from any version to `0.5.2` of the `statsderl` dependency (either upgrading or downgrading) we just restart the application. |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ -z $1 ] | ||
then | ||
echo "pr2relnotes.sh: prints list of pull requests merged since <tag>" | ||
echo " usage: $0 <tag> [pull-request-url (default: https://github.com/lrascao/rebar3_appup_plugin/pull/)]" | ||
exit 0 | ||
fi | ||
export url=${2:-"https://github.com/lrascao/rebar3_appup_utils/pull/"} | ||
|
||
git log --merges --pretty=medium $1..HEAD | \ | ||
awk -v url=$url ' | ||
# first line of a merge commit entry | ||
/^commit / {mode="new"} | ||
# merge commit default message | ||
/ +Merge pull request/ { | ||
page_id=substr($4, 2, length($4)-1); | ||
mode="started"; | ||
next; | ||
} | ||
# line of content including title | ||
mode=="started" && / [^ ]+/ { | ||
print "- [" substr($0, 5) "](" url page_id ")"; mode="done" | ||
}' |
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,7 +1,7 @@ | ||
%% appup generated for {{app}} by rebar3_appup_plugin ({{{now}}}) | ||
{ "{{{new_vsn}}}", | ||
[{ "{{{old_vsn}}}", | ||
{{upgrade_instructions}} }], | ||
{{{upgrade_instructions}}} }], | ||
[{ "{{{old_vsn}}}", | ||
{{downgrade_instructions}} }] | ||
{{{downgrade_instructions}}} }] | ||
}. |
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,6 +1,8 @@ | ||
{"1.1.0", | ||
[{<<"bbmustache">>,{pkg,<<"bbmustache">>,<<"1.5.0">>},0}]}. | ||
[{<<"bbmustache">>,{pkg,<<"bbmustache">>,<<"1.5.0">>},0}, | ||
{<<"string_compat">>,{pkg,<<"string_compat">>,<<"0.0.1">>},0}]}. | ||
[ | ||
{pkg_hash,[ | ||
{<<"bbmustache">>, <<"8CFDE0602E90A4057E161BF5288ADE854B4E511E2E8924966A8438730E958381">>}]} | ||
{<<"bbmustache">>, <<"8CFDE0602E90A4057E161BF5288ADE854B4E511E2E8924966A8438730E958381">>}, | ||
{<<"string_compat">>, <<"90E3196826B84EF8F7F9A0B50007697F1228C0E06A5E64112648D4ABC8CFC452">>}]} | ||
]. |
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
Oops, something went wrong.