summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Introduce REBAR_DEPS_PREFER_LIBS env variable to alter search behaviourMatwey V. Kornilov2016-03-142-15/+42
| | | | | | | | | | | When REBAR_DEPS_PREFER_LIBS is set, dependencies with defined sources are allowed to be searched for in system lib directory. Under specific circumstances (i.e. in build environments without networking) it is impossible to fetch deps locally. So, user needs a way to ask rebar to search in system lib directory as well. Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
* Fix bug when running gcc in cross_sizeofFrank Hunleth2016-03-131-1/+1
| | | | | | | The test program used to determine the word size of a crosscompiler is crafted to return an error, so this changes the logic to expect an error exit. If the crosscompiler actually compiles the test program successfully, that would be remarkable and worthy of investigation.
* Merge pull request #590 from lrascao/feature/allow_port_env_flags_redefinitionLuis Rascão2016-02-231-2/+8
|\ | | | | Treat port env vars as expandable only if they self reference
| * Treat port env vars as expandable only if they self referenceLuis Rascão2016-02-191-2/+8
| | | | | | | | | | Provide additional port test case. Also, update newest OS X versions build flags.
* | Fix eunit_surefire crash with rebar eunit tests=...Tomas Janousek2016-02-191-1/+6
|/ | | | | | | This fixes the following crash: > =ERROR REPORT==== 20-Jun-2014::16:35:38 === > Error in process <0.40.0> with exit value: {function_clause,[{eunit_surefire,escape_suitename,[undefined,[]],[{file,"eunit_surefire.erl"},{line,416}]},{eunit_surefire,write_report,2,[{file,"eunit_surefire.erl"},{line,258}]},{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},{...
* Update regexp to account for newer OTP versionsLuis Rascão2016-02-151-7/+13
| | | | | | | | Add support for patch numbers, also expose version_tuple/1 for easier internal access. Normalize version_tuple/1 return value, now always {Major, Minor, Patch}. Update regression tests accordingly.
* Ensure ebin created for dia compilerYury Gargay2016-02-131-0/+2
| | | | also add myself to THANKS
* Automatically clean neotoma-generated erl filesJohn R. Daily2016-02-131-1/+32
| | | | Add myself to THANKS
* Add support for Windows integration testingLuis Rascão2016-01-151-9/+26
| | | | | | | | | | | | | | Use retest feature/rebar-windows-ci branch that adds Windows tests support, test setup callback and additional touch command. For all tests copy rebar and rebar.cmd using retest setup callback. Port OS specific commands used in tests to Erlang (eg. touch, rm, cp, stat..). rebar_ct: do away with grep command line invocation (which doesn't exist in Windows) and use instead plain Erlang parsing. Increase timeout for rgen1 test to 4 minutes, Windows Appveyor can take longer than the previous 2 minutes.
* Merge pull request #573 from lrascao/feature/improve_relup_generation_debugFred Hebert2015-12-131-0/+6
|\ | | | | Provide additional debug logging on relup generation
| * Provide additional debug logging on relup generationLuis Rascão2015-12-131-0/+6
| |
* | Merge pull request #570 from tuncer/xref-dialyzer-warningLuis Rascão2015-11-281-3/+3
|\ \ | |/ |/| xref: fix dialyzer warning introduced in 69802f63120
| * xref: fix dialyzer warning introduced in 69802f63120Tuncer Ayaz2015-11-281-3/+3
| |
* | Merge pull request #557 from lrascao/fix/windows_eunit_testsFred Hebert2015-10-261-5/+7
|\ \ | | | | | | Fix windows eunit tests
| * | Fix windows eunit testsLuis Rascão2015-10-251-5/+7
| |/ | | | | | | | | | | | | | | | | | | | | File tests: windows file operations should abort on error the same as unix operations invoked through sh. Also windows does not support the '?' character in filenames. Eunit tests: the 'All' prefix is missing on the 'x tests passed' message. Eunit only prints the 'All' prefix if there are more than 2 passed tests, dropping the prefix on the match works for all cases.
* | Add qualified name tests docs (see pr #119)Sergey Savenko2015-10-251-0/+1
|/
* fprof: further document Cachegrind supportLuis Rascão2015-10-191-2/+2
|
* fprof: document Cachegrind supportTuncer Ayaz2015-10-141-1/+3
|
* 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
| |