Commit graph

1585 commits

Author SHA1 Message Date
Vlad Dumitrescu
aa5b8ac772 add Emacs/vi header to non-dummy test modules 2014-12-02 10:52:45 +01:00
Tristan Sloughter
47dba1bbc3 Merge pull request #399 from tomas-abrahamsson/gpb-inttest-timeout
Increase the timeout for the inttest/proto_gpb
2014-12-01 20:14:23 -06:00
Tomas Abrahamsson
f1ef90b9df Increase the timeout for the inttest/proto_gpb
On my slow old netbook with a 1.6GHz CPU, this inttest
takes about 40 seconds to run, of which network activity
is about 3s, the default timeout of retest is 30s.
Add a generous margin to avoid unnecessary timeouts.
2014-12-01 23:47:45 +01:00
Fred Hebert
d42ed46835 Normalize log level as WARN to ERROR in new patch 2014-11-27 15:34:52 -05:00
Fred Hebert
167e2a12b8 Merge pull request #322 from tuncer/fix-319
Treat vsn mismatch as warning if -k/--keep-going
2014-11-27 14:47:26 -05:00
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