Commit graph

1580 commits

Author SHA1 Message Date
Tuncer Ayaz
a4c5f3357f Treat vsn mismatch as warning if -k/--keep-going
Fixes #319.
2014-11-25 18:44:21 +01:00
Fred Hebert
899d60cdb0 Merge branch 'terrencehan-fix_upgrade_error' 2014-11-21 10:11:53 -05:00
Fred Hebert
c54d496030 Additional fixes and modification
- Updating documentation to be more accurate
- Style fixes
- More precise error messages
2014-11-21 10:11:13 -05:00
Fred Hebert
b41086ba98 Merge branch 'fix_upgrade_error' of https://github.com/terrencehan/rebar into terrencehan-fix_upgrade_error 2014-11-21 09:59:46 -05:00
Fred Hebert
4ba8f74787 Revert "Merge branch 'platinumthinker-color_in_logs'"
This reverts commit 49930fe566, reversing
changes made to 6e6b0fd43f.
2014-11-21 09:57:49 -05:00
Fred Hebert
49930fe566 Merge branch 'platinumthinker-color_in_logs' 2014-11-21 09:46:31 -05:00
Fred Hebert
733d3771fa Merge branch 'color_in_logs' of https://github.com/platinumthinker/rebar into platinumthinker-color_in_logs
Conflicts:
	THANKS
2014-11-21 09:46:10 -05:00
Andrey Teplyashin
cc3f54b008 Fix verbose level in global rebar config
Replace application:set_env on erlang:put
2014-11-20 00:22:26 +06:00
Andrey Teplyashin
c01cf5902b Add colored logs 2014-11-19 23:44:55 +06:00
Fred Hebert
6e6b0fd43f Merge pull request #385 from tuncer/dialyzer-warning
Fix Dialyzer warning introduced in 0caf047f
2014-11-03 15:09:05 -05:00
Tuncer Ayaz
3cae9d83cd Fix Dialyzer warning introduced in 0caf047f 2014-11-03 20:39:19 +01:00
Tristan Sloughter
26c5a6e872 Merge pull request #382 from tuncer/update-dialyzer
Adapt dialyzer_reference to ba466e2d changes
2014-11-02 14:02:00 -06:00
Tuncer Ayaz
faa074da91 distclean: do not remove plt 2014-11-02 14:23:13 +01:00
Tuncer Ayaz
c72fb997da Adapt dialyzer_reference to ba466e2d changes 2014-11-02 14:00:15 +01:00
Fred Hebert
17e0b14d1d Merge pull request #203 from tomas-abrahamsson/pluggable-proto-compilers-gpb
Pluggable proto compilers gpb
2014-10-31 09:32:13 -04:00
Fred Hebert
5f7a5afa75 Merge pull request #337 from tuncer/eflame
Implement eflame -p/--profile support
2014-10-30 11:54:20 -04:00
Tomas Abrahamsson
9f057f29c5 Add inttest for default proto compiler (protobuffs)
This borrows heavily from the inttest for gpb, many thanks
to Luis Rascão for providing a most useful example.
2014-10-29 23:46:01 +01:00
Luis Rascão
144cb8c156 Add proto compiler gpb inttest
exercises rebar/gpb integration

The bulk of these tests are written by Luis Rascão, hence he is the
author of this commit. As the committer, I have cherry-picked his two
commits 4c87bcd and ebb8182, from the feature/support_gpb_protobuf
branch in the git://github.com/lrascao/rebar repo, and have slightly
adapted it to fit this pluggable-proto-compilers-gpb branch.

Update the THANKS file
2014-10-29 23:46:01 +01:00
Tomas Abrahamsson
1b367a8b24 Add support for compiling proto files using gpb
This adds the config option {proto_compiler,gpb} for selecting gpb
as the compiler for protocol buffer files. When gpb is used as
compiler, it reads the gpb_opts config item for options.
2014-10-29 23:45:35 +01:00
Tomas Abrahamsson
0caf047fc3 Introduce pluggable protocol buffer compilers
Make it possible for plug in alternative protocol buffer compilers.
The compilers are picked up based on if they export all of the
functions key/0, proto_compile/3, proto_clean/3 and proto_info/2.
The set of compiler modules to choose from, is fetched from the rebar
application environment, from the app_dir modules.

A new config option, {proto_compiler,Compiler}, specifies which of
the available protocol buffer compilers to use. The 'protobuffs'
compiler is now one such compiler (the only one), and it is also the
default, for backwards compatibility.
2014-10-29 23:45:35 +01:00
Tuncer Ayaz
631d74c00f Implement eflame -p/--profile support
When -p/--profile is enabled, you can select the profiler as follows:

generate flame graph (eflame.svg) from trace (eflame.trace)
$ rebar -p compile profiler=eflame

generate fprof.analysis
$ rebar -p compile

generate fprof.analysis
$ rebar -p compile profiler=fprof
2014-10-29 19:24:58 +01:00
Tuncer Ayaz
009b50ec3b inttest/logging: fix log level 2014-10-29 19:11:10 +01:00
Tuncer Ayaz
173f5b82d6 inttest: add missing headers and fix a typo 2014-10-29 19:11:10 +01:00
Fred Hebert
b92dce1569 Merge pull request #376 from irpab/edoc_without_ebin
Remove check adding ebin to path for edoc target
2014-10-23 18:54:46 -04:00
Pavel Baturko
dfc3cc5ad2 Skip check for ebin directory when building edoc
edoc target fails if ebin directory does not exist.
ebin directory is not necessary for building edoc.
Skip check that ebin directory exist.
2014-10-24 00:40:50 +04:00
Fred Hebert
71aedb8674 Merge pull request #372 from robertoaloi/eval
Implement eval command via nodetool
2014-10-21 08:56:41 -04:00
Roberto Aloi
93ccbf936c Implement eval command via nodetool 2014-10-21 14:22:37 +02:00
Fred Hebert
b693c23663 Merge pull request #371 from ferd/cover-print-percent
Fix cover print truncation when coverage is 100%
2014-10-16 15:40:46 -04:00
Fred Hebert
6f7e70edee Fix cover print truncation when coverage is 100%
When the option {cover_print_enabled, true} is set and that the code
coverage is 100%, the '%' will end up being truncated.

This patch makes it so that the truncation happens at 4 a characters
width so that instead of the following printouts:

    some_mod  : 99%
    some_other: 100

We instead show:

    some_mod  :  99%
    some_other: 100%

This solves issue #331 as reported by @lispking and @NineFX.
2014-10-16 12:00:54 -04:00
Fred Hebert
9c7dae7e25 Merge pull request #368 from eproxus/handle-more-characters-in-paths
Escape more characters in path (fix #367)
2014-10-14 08:11:20 -04:00
Adam Lindberg
ec6ff3597d Escape more characters in path (fix #367) 2014-10-14 12:29:40 +02:00
Fred Hebert
ad3328b144 Merge pull request #356 from tuncer/contributing-typo
Fix minor typo in CONTRIBUTING.md
2014-10-06 09:32:57 -04:00
Fred Hebert
4e378a4842 Merge pull request #355 from tuncer/fix-make_build_plt
Fix 'make build_plt'
2014-09-18 11:43:56 -04:00
Fred Hebert
ab40289b32 Merge pull request #360 from tuncer/pr293-follow-up
Minor follow-up fixes for #293
2014-09-11 11:03:00 -07:00
Tuncer Ayaz
c2afc7d98b Minor follow-up fixes for #293 2014-09-11 19:06:04 +02:00
Fred Hebert
d5e3b4329c Merge pull request #293 from liskin/port-deps
Check C source dependencies in needs_compile
2014-09-11 09:53:30 -07:00
Tuncer Ayaz
232488c265 Fix minor typo in CONTRIBUTING.md 2014-09-06 16:11:08 +02:00
Tuncer Ayaz
b813542f26 Fix 'make build_plt'
The dialyzer --add_to_plt call was not specifying the proper
rebar plt to add diameter to.
2014-09-03 20:19:18 +02:00
Fred Hebert
c074240b1f Normalize whitespace 2014-08-29 11:10:23 -04:00
Andrew Thompson
69b6e304e8 Merge pull request #351 from joedevivo/master
fish shell completions for rebar
2014-08-28 21:09:13 +00:00
Fred Hebert
9c1da17d79 Merge pull request #352 from tuncer/rebased-309
Add typer target (rebase of #309)
2014-08-28 16:10:20 -04:00
varnerac-ubnt
33b8769bf7 Add typer target
This patch adds a typer target to the Makefile. It makes it
easier for developers to start adding specs to the codebase. It
also as a build_plt target with the built-in applications typer
needs to analyze rebar.

This also includes the Erlang version in the generated PLT file.
typer and dialyzer targets use this file. Finally, the distclean
target removed the versioned PLT file.
2014-08-28 21:46:59 +02:00
Joe DeVivo
0a54123ff2 added fish support for './rebar' 2014-08-25 11:20:09 -07:00
Joe DeVivo
519e1c8d16 fish shell completions for rebar 2014-08-25 09:58:52 -07:00
Andrew Thompson
a467abbb16 Merge pull request #344 from evanmcc/pevm/set-path-speedup
Manually clean up paths.
2014-08-18 21:59:51 +00:00
Evan Vigil-McClanahan
ba466e2d38 Manually clean up paths
Using code:set_path/1 with very large paths is very slow on larger
projects.  On my mid-sized project, it seems to take around .4s per
call.  Emulating the call with direct path removal (using
code:del_path/1) seems to be quite a lot faster.
2014-08-18 13:56:19 -07:00
tsloughter
e9f62c4580 Bump to 2.5.1 2014-07-30 17:37:49 +00:00
Tristan Sloughter
19c215ee9f Merge pull request #299 from tuncer/rok-resource-forks
Fix OS X resource fork handling (Reported-by: Richard O'Keefe)
2014-07-25 14:10:04 -05:00
Tuncer Ayaz
3fb4a7c540 Fix OS X resource fork handling (Reported-by: Richard O'Keefe)
If you happen to fetch a zip archive of the git repo and try to build
from that, you may, for example, ask erlc to build src/._rebar.erl.
._* are OS X resource forks and not real .erl files. This may also
happen with network filesystems on OS X. To fix that, limit the
files compiled by rebar to include only those which start with
a letter or a digit.
2014-07-25 20:52:30 +02:00
Tristan Sloughter
e8a6cfe04a Merge pull request #332 from tuncer/update-dialyzer_reference
Update dialyzer_reference
2014-07-25 13:51:23 -05:00