summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Add report and verbose options for LFE compileDuncan M. McGreggor2015-09-261-1/+3
| | | | | | | | | | | | | | Recent builds of LFE have stopped reporting compile errors when compiled with rebar. Examination of this issue revealed that this was due to recent changes in default LFE compile options. The way that LFE handles compile options has slightly changed; ``verbose`` and ``report`` are now provided as defaults only if no other options are passed; if other options are passed, these do not get set. As a result, we have stopped seeing compile error info when building with rebar. This change brings back the previous level of reporting that LFE developers had when compiling their projects with rebar.
* Merge pull request #539 from platinumthinker/fix_unit_test_first_filesFred Hebert2015-09-211-1/+3
|\ | | | | Add erl_first_files in eunit_first_files and qc_first_files
| * Add erl_first_files to other first_filesAndrey Teplyashin2015-09-211-1/+3
| |
* | Merge pull request #538 from tuncer/fix-536Fred Hebert2015-09-121-5/+0
|\ \ | | | | | | Fix #536
| * | Fix #536Tuncer Ayaz2015-08-241-5/+0
| |/
* | rmemo: use a better R13 check (Reported-by: Stavros Aronis)Tuncer Ayaz2015-09-111-9/+5
| |
* | Complete port compiler help stringTuncer Ayaz2015-09-041-63/+56
|/ | | | | | Move existing documentation from code comment into help string, so that 'rebar help compile' prints complete documentation for rebar_port_compiler.
* Allow behaviors defined inside xref_extra_pathPaulo Oliveira2015-08-211-0/+5
| | | | | | Use case: xref'ing a module that defined behavior ranch_protocol was exiting with {'EXIT',{undef,[{ranch_protocol,behaviour_info, [callbacks],[]}
* Fix up colored log supportTuncer Ayaz2015-07-031-26/+26
| | | | | | | | | | | * do not use pdict * do not enable color support by default. once we have the new getopt version, we can add a new type of command line flag for that. * fix Dialyzer warnings * use atom instead of boolean * use better name for internal function * do not try (and fail) to access rebar's app env in retest test
* Add colored logsAndrey Teplyashin2015-07-031-4/+41
| | | | | | Fix verbose level in global rebar config Replace application:set_env on erlang:put
* rebar_utils: fix commentTuncer Ayaz2015-07-021-6/+5
|
* cross-arch: fix up issuesTuncer Ayaz2015-07-022-144/+180
| | | | | | | | | | | | | | | | | | | | | * fix commit messages * fix whitespace issues * move internal helper functions to correct location * unexport internal cross arch helper functions * fix 18.0 time API compatibility * fix Windows temp dir detection * use correct helper function name * use sh/2 instead of os:cmd/1 * match file:delete/1 result * use logging macros * fix typo * fix Dialyzer warnings * add Tony Rogvall to THANKS * add missing termination clause * os type must be win32, not windows * match file:write_file/2 result * document cross-arch variables * simplify env_wordsize/1 (Thanks Fred Hebert)
* port_compiler: cross-arch rename variablesTony Rogvall2015-07-022-11/+12
| | | | | | | | | | New variable names: * REBAR_TARGET_ARCH * REBAR_TARGET_ARCH_VSN * REBAR_TARGET_ARCH_WORDSIZE
* rebar_utils: add (word)size helper functionTony Rogvall2015-07-021-3/+73
|
* port_compiler: add cross arch supportTony Rogvall2015-07-022-6/+81
| | | | | | | | | | New vars for cross arch support: * REBAR_ARCH_TARGET * REBAR_TARGET_WORDSIZE * REBAR_ARCH_TARGET_VSN
* rmemo: properly handle unsupported callTuncer Ayaz2015-06-191-1/+1
|
* rebar_utils: rename internal functionTuncer Ayaz2015-06-121-3/+3
|
* rmemo: document rebar-specific modificationsTuncer Ayaz2015-06-121-0/+4
|
* rmemo: support R13 for rebar onlyTuncer Ayaz2015-06-121-2/+15
| | | | | | | ets read_concurrency has been available since R14, but rebar supports R13B03 (and newer). As a workaround we check that erts/ebin/erts.app exists as another pre-R14 characteristic to determine whether we can assume read_concurrency is supported.
* Start using memoization serverTuncer Ayaz2015-06-122-19/+12
| | | | | | | 1. memoize otp release vsn string function call 2. memoize expensive filename:absname/1 call which happens to be called quite frequently
* Add memoization serverTuncer Ayaz2015-06-111-0/+277
| | | | | Copy memo.erl from https://github.com/tuncer/memo and rename to rmemo.erl for use in rebar. We rename it to avoid collisions.
* erlc: do not crash if dep file cannot be foundTuncer Ayaz2015-06-081-0/+5
|
* rebar_core: add missing newline in log msgTuncer Ayaz2015-06-071-1/+1
|
* Merge pull request #504 from fishcakez/plt_nameFred Hebert2015-06-071-5/+1
|\ | | | | Drop `shared` PLTs support and change PLT name to <OTP-VSN>.plt
| * Drop support for `shared` pltJames Fish2015-06-061-5/+1
| |
* | rebar_utils: explain pdict useTuncer Ayaz2015-06-031-3/+8
|/
* Don't crash if missing OTP_VERSION file (fix #350)Jesse Gumm2015-06-021-12/+43
|
* Merge pull request #460 from tuncer/dialyzerFred Hebert2015-05-294-0/+264
|\ | | | | Add Dialyzer plugin
| * dialyzer: change plt_location to rebar3 defaultTuncer Ayaz2015-05-221-6/+6
| | | | | | | | To match rebar3, change plt_location's default to 'local'.
| * dialyzer: nest dialyzer options to match rebar3Tuncer Ayaz2015-05-221-32/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {dialyzer, [ %% Store PLT in ~/.rebar/plt (Default) {plt_location, shared}, %% Store PLT locally inside the project in .rebar {plt_location, local}, %% Store PLT in custom directory {plt_location, "custom_dir"}, %% Extra apps to include in the PLT {plt_extra_apps, [app1, app2]}, {warnings, [unmatched_returns, error_handling]} ]}.
| * Suppress missing calls Dialyzer warningsTuncer Ayaz2015-05-222-0/+4
| |
| * dialyzer: consistent warning formattingJames Fish2015-05-221-7/+16
| |
| * Add Dialyzer pluginTuncer Ayaz2015-05-222-0/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build project-specific PLT $ rebar build-plt Check the PLT for consistency and rebuild it if it is not up-to-date $ rebar check-plt Analyze the code for discrepancies $ rebar dialyze Delete project-specific PLT $ rebar delete-plt Valid rebar.config options: %% Store PLT in ~/.rebar/plt (Default) {dialyzer_plt_location,shared} %% Store PLT locally inside the project in .rebar {dialyzer_plt_location,local} %% Store PLT in custom directory {dialyzer_plt_location,"custom_path"} {dialyzer_plt_extra_apps,[app1,app2]} {dialyzer_warnings,[unmatched_returns,error_handling]}
* | Try one more location for the OTP_VERSION fileStavros Aronis2015-05-291-2/+8
| | | | | | | | | | If one is building Erlang from sources without making a proper release, there may be an OTP_VERSION file in the root directory.
* | Merge branch 'ct-groups-and-cases' of https://github.com/RubberCthulhu/rebar ↵Fred Hebert2015-05-272-14/+60
|\ \ | |/ |/| | | | | | | | | into RubberCthulhu-ct-groups-and-cases Conflicts: THANKS
| * Add options 'groups' and 'cases' to 'ct' commandDanil Onishchenko2015-05-272-14/+60
| | | | | | | | | | | | | | Add option 'groups' to 'rebar ct' command. So the command "rebar ct suites=Suite1 groups=Group1,Group2,...,GroupN" is equal to "ct_run -suite Suite1_SUITE -group Group1 Group2 ... GroupN". It allows to run specified test groups in specified test suite with Common Test tool. Besides it is absolutely necessary to specify groups for running test cases which are included in these groups, otherwise init_per_group/2 and end_per_group/1 callbacks are not called by ct_run. Add option 'cases' to 'rebar ct' command. So the command "rebar ct suites=Suite1 cases=Case1,Case2,...,CaseN" is equal to "ct_run -suite Suite1_SUITE -case Case1 Case2 ... CaseN". It allows to run one or more test cases in specified test suite. Currently rebar has an option 'case' which allows to run only one test case. The option case is remained for backward compability. It's suggested to consider the option 'case' as deprecaed and recommended to use 'cases' instead. Updated help messages according to new command line options. Add warning message when used deprecated options 'case', 'group', 'suite' in command "rebar ct".
* | Merge pull request #273 from cybergrind/appups_fixFred Hebert2015-05-121-1/+1
|\ \ | | | | | | Use target_dir as source of new version in generate-appups
| * | Use target_dir as source of new version in generate-appupsKirill Pinchuk2014-05-301-1/+1
| | |
* | | Merge branch 'dia_first_files' of https://github.com/fholzhauser/rebar into ↵Fred Hebert2015-05-091-8/+39
|\ \ \ | | | | | | | | | | | | fholzhauser-dia_first_files
| * | | Correct overlong lines in rebar_dia_compiler.erlfholzhauser2014-09-231-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | With the implementation of dia_first_files option some lines exceeded 79 columns (thanks to Tuncer Ayaz for pointing this out). These are corrected with this change.
| * | | Add option dia_first_files for the diameterfholzhauser2014-09-221-8/+31
| | | | | | | | | | | | | | | | | | | | With this option is is possible to provide a list of files to compile first. It is necessary when diameter dictionaries have dependencies.
* | | | Merge branch 'fix/xref_behavior' of ↵Fred Hebert2015-05-091-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | https://github.com/paulo-ferraz-oliveira/rebar into paulo-ferraz-oliveira-fix/xref_behavior
| * | | | Make rebar xref recognize -behavior() as anPaulo Oliveira2015-01-171-1/+2
| | | | | | | | | | | | | | | | | | | | American alternative to -behaviour()
* | | | | Merge branch 'feature/add_gpb_proto_error_test_case' of ↵Fred Hebert2015-05-091-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | https://github.com/lrascao/rebar into lrascao-feature/add_gpb_proto_error_test_case
| * | | | | Fix source file console output of failed buildLuis Rascao2015-05-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On a failed build, print an absolute source filename, if applicable
* | | | | | Merge pull request #485 from kejv/robust-expand_include_lib_pathFred Hebert2015-05-081-3/+7
|\ \ \ \ \ \ | |/ / / / / |/| | | | | avoid pre-compile time errors in expand_include_lib_path
| * | | | | avoid pre-compile time errors in expand_include_lib_pathDavid Kubecka2015-05-071-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously when user specified broken include_lib, such as -include_lib("my_app.hrl"), the code throwed too early exception. We fix this simply by avoiding any possible internal errors, possibly letting even nonsensical paths pass. These will be checked and filtered later in expand_file_names/2.
* | | | | | Fix crash on failed build console outputLuis Rascao2015-05-051-2/+2
|/ / / / /
* | | | | erlc: fix recently introduced whitespace errorsTuncer Ayaz2015-05-011-46/+73
| | | | |
* | | | | Fix parse_transform option in rebar.configDavid Kubecka2015-04-201-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently this option doesn't work very well because given parse_transform is applied globally to all modules, even to parse transform module itself which is not possible because the module is not yet compiled. So we just ensure that local parse transformations are not applied to themselves and probably also to erl_first_files since they are explicitly stated as to be compiled before anything else.