Anthony Molinaro
eb6cf4d721
REBAR_COLOR supports all ec_cmd_log intensity options
пре 8 година
Fred Hebert
29623b59ef
Merge pull request #1534 from ferd/abuse-undef-functions
Abuse error_handler to get free metacalls in r3
пре 8 година
Fred Hebert
03425c788c
Abuse error_handler to get free metacalls in r3
This uses the very risky '$handle_undefined_function'/2 export from the
r3 and rebar_agent modules to allow meta-calls that can support plugins
and all other rebar3 extensions.
This is nasty but very tempting. Currently we only support:
- r3:do(Command)
- r3:do(Namespace, Command)
There is currently no way to pass arguments to the function such that we
can, for example, run cover analysis or tests on a subset of suites.
With the new abuse of '$handle_undefined_function'/2, we can detect the
unused commands (since they are not exported) and re-route them:
- r3:Command()
- r3:Command("--args=as a string")
- r3:Command(Namespace, "--args=as a string")
Of course, in doing so, we make it impossible to use the 'do' provider
(as in 'rebar3 do ct -c, cover') since the 'do' function is already
required for things to work.
Since the previous function had very strict guards, we can, without
conflict, add manual overrides that simulate the meta-calls fine.
Sample run:
https://gist.github.com/ferd/2c06d59c7083c146d25e4ee301de0073
пре 8 година
Tristan Sloughter
d284b72c61
Merge pull request #1528 from lrascao/fix/occured_typo
Fix typo, occured -> occurred
пре 8 година
Luis Rascao
d15ea91b71
Fix typo, occured -> occurred
пре 8 година
Fred Hebert
4bac0ed2a4
Merge pull request #1524 from lrascao/feature/bump_relx_3_22_4
Bump relx to 3.22.4
пре 8 година
Luis Rascao
601f2e8e91
Bump relx to 3.22.4
пре 8 година
Fred Hebert
e32cd3118f
Merge pull request #1523 from mbeijen/separate
Typo: seperate -> separate
пре 8 година
Michiel Beijen
e83100bbc8
Typo: seperate -> separate
пре 8 година
Fred Hebert
2cc07d8f1f
Back to git-based versioning
пре 8 година
Fred Hebert
8142cd7399
Bump to 3.3.6
- [OSX tests added to CI](https://github.com/erlang/rebar3/pull/1471 ),
joining linux and windows 10
- [upgrade relx to 3.22.3](https://github.com/erlang/rebar3/pull/1518 ),
[fixing multiple
issues](https://github.com/erlware/relx/releases/tag/v3.22.3 )
- [Fixing eunit errors in 19.3 when `init_per_*` isn't paired with
`end_per_*`](https://github.com/erlang/rebar3/pull/1516 )
- [Allow single test spec in
ct_opts](https://github.com/erlang/rebar3/pull/1506 )
- [Properly warn when missing inets at
runtime](https://github.com/erlang/rebar3/pull/1505 )
- [rebar_utils:escape_chars handles quotes in
paths](https://github.com/erlang/rebar3/pull/1504 )
- [Fix typo in help text for upgrade
command](https://github.com/erlang/rebar3/pull/1503 )
- [change package version warnings to debug
level](https://github.com/erlang/rebar3/pull/1502 )
- [Path-type sensitive .cmd creation for
escripts](https://github.com/erlang/rebar3/pull/1500 )
- [Windows escripts get cmd
autogenerated](https://github.com/erlang/rebar3/pull/1494 )
- [REBAR_CONFIG impacts config file for project root
only](https://github.com/erlang/rebar3/pull/1497 )
- [Fix wildcard usage in rebar3
clean](https://github.com/erlang/rebar3/pull/1498 )
- [Bump cth_readable to
1.2.4](https://github.com/erlang/rebar3/pull/1496 ) (fixing some
erroneous reports when suites get skipped)
- [Add respect for src_dirs option in app_discover and
app_info](https://github.com/erlang/rebar3/pull/1486 )
- [Add support for global plugin-defined
templates](https://github.com/erlang/rebar3/pull/1473 )
- [catch badarg exception from eunit in
`rebar_prv_eunit`](https://github.com/erlang/rebar3/pull/1472 )
пре 8 година
Fred Hebert
7a86c59aee
Merge pull request #1471 from talentdeficit/travis-osx
update travis.yml to test on osx
пре 8 година
Fred Hebert
63c228de16
Merge pull request #1518 from tsloughter/relx-3.22.3
upgrade relx to 3.22.3
пре 8 година
Tristan Sloughter
2f2aa4e1b8
upgrade relx to 3.22.3
пре 8 година
Fred Hebert
903bec6b57
Merge pull request #1516 from talentdeficit/fix_eunit_suite
eunit in 19.3 errors if `init_per_*` isn't paired with `end_per_*`
пре 8 година
alisdair sullivan
26e174a5e4
eunit in 19.3 errors if `init_per_*` isn't paired with `end_per_*`
пре 8 година
Alin Popa
62a737766d
Fix git SHAs comparison for update.
86e883b8d8
always returns the full length SHA,
therefore when using a dependency having the short SHA,
it'll always consider that the SHAs are different,
hence it'll alway return true for .
пре 8 година
alisdair sullivan
86e883b8d8
Merge pull request #1511 from vladdu/patch-2
minor fix: name of internal function
пре 8 година
Vlad Dumitrescu
d4beb8edf1
fix "apps" name
пре 8 година
alisdair sullivan
34697f1f84
Merge pull request #1512 from erlang/revert-1508-patch-1
Revert "List 'lock' command in man page"
пре 8 година
alisdair sullivan
430db1f5fd
Revert "List 'lock' command in man page"
пре 8 година
alisdair sullivan
ca3aa76a0e
Merge pull request #1508 from vladdu/patch-1
List 'lock' command in man page
пре 8 година
Vlad Dumitrescu
b763a9e14a
minor fix: name of internal function
пре 8 година
Vlad Dumitrescu
6f823c4d21
List 'lock' command in man page
пре 8 година
Fred Hebert
3e66bbb1b9
Merge pull request #1506 from sirihansen/ct-single-testspec
Allow single test spec in ct_opts
пре 8 година
Siri Hansen
64b5d878af
Allow single test spec in ct_opts
The option {spec,Specs} is allowed in ct_opts, but
rebar_prv_common_test:test_dirs did not take into account that Specs
could also be a string only, i.e. not a list of strings.
пре 8 година
alisdair sullivan
df432584dd
Merge pull request #1505 from colrack/inetsdepfix
Properly warn on missing rebar3 deps: add inets
пре 8 година
Carlo Carraro
3d9e5dff85
Properly warn on missing rebar3 deps: add inets
пре 8 година
Fred Hebert
bd357bb510
Merge pull request #1504 from vladdu/patch-1
rebar_utils:escape_chars handles quotes
пре 8 година
Vlad Dumitrescu
c6eea2bd46
rebar_utils:escape_chars handles quotes
rebar_file_utils:cp_r uses rebar_utils:escape_chars to ensure that the file names are safe to use, but it doesn't escape double and single quotes. If the file name includes those characters, they disappear when the shell processes them and we get "file not found" errors.
The main culprit here is eunit, that creates reports whose names are `TEST-file_"myfile.app".xml`, and I wish it didn't but I think escape_chars should still do its job all the way.
пре 8 година
Fred Hebert
3a5f7091b2
Merge pull request #1503 from jfacorro/upgrade-help-fix-typo
Fix typo in help text for upagrde command
пре 8 година
Juan Facorro
5411a67ee6
Fix typo in help text for upgrade command
пре 8 година
Fred Hebert
363ae665dd
Merge pull request #1502 from tsloughter/vsn_warning
change package version warning to debug
пре 8 година
Tristan Sloughter
695da1e0c2
change package version warning to debug
пре 8 година
Fred Hebert
9e8256ba73
Merge pull request #1500 from ferd/fix-win-tests
Path-type sensitive .cmd creation
пре 8 година
Fred Hebert
9f28bbe3c7
Path-type sensitive .cmd creation
пре 8 година
alisdair sullivan
55b4b761af
Merge pull request #1494 from ferd/escript-generate-cmd-win32
Windows escripts get cmd autogenerated
пре 8 година
Fred Hebert
a4df4ece16
Merge pull request #1499 from ferd/avoid-clean-wildcard-apps
More fixes for bad calls to find_apps
пре 8 година
Fred Hebert
7c125d95f0
More fixes for bad calls to find_apps
пре 8 година
alisdair sullivan
b810909314
Merge pull request #1497 from ferd/rebar-config-override-root
REBAR_CONFIG impacts file project root only
пре 8 година
alisdair sullivan
1376967687
Merge pull request #1498 from ferd/avoid-clean-wildcard-apps
Fix wildcard usage in rebar3 clean
пре 8 година
Fred Hebert
66a2439196
Fix wildcard usage in rebar3 clean
The wildcard usage could fail on some OSes by being passed directly and
just not finding libs and erroring out
пре 8 година
Fred Hebert
e6193b4903
Merge branch 'escript-generate-cmd-win32' of https://github.com/ferd/rebar3 into escript-generate-cmd-win32
пре 8 година
alisdair sullivan
ffeb682886
Merge pull request #1496 from ferd/bump-cth-readable
Bump cth_readable to 1.2.4
пре 8 година
Fred Hebert
af426acec1
Bump cth_readable to 1.2.4
Fixes an issue where some skipped test suites could end up misreported
as the previous suite. See
https://github.com/ferd/cth_readable/issues/10
пре 8 година
Fred Hebert
0bc0aeba9c
REBAR_CONFIG impacts file project root only
пре 8 година
Fred Hebert
7918be19c3
Merge pull request #1486 from ferd/src_dir-is-respected
Add respect for src_dirs option in app_discover and app_info
пре 8 година
Fred Hebert
e82ef746a6
Windows escripts get cmd autogenerated
This also patches up a problem for hooks when dealing with directories
with spaces in them, and reduces complexity of bootstrap file.
пре 8 година
Fred Hebert
f60a377b5d
make the hook for windows work
пре 8 година
Fred Hebert
81b6c0f6b6
WIP windows escripts get cmd autogenerated
пре 8 година