summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* add rebar update providerTristan Sloughter2014-08-1610-170/+88
|
* move back to single command with arguments for comamnd after itTristan Sloughter2014-08-168-18/+16
|
* replace logging with ec_cmd_log from erlware_commonsTristan Sloughter2014-08-166-46/+25
|
* large refactoringTristan Sloughter2014-08-1632-4205/+1390
| | | | | | | | Removed separate compilers Resolves apps to build Finds avail deps before pulling/building Includes relx Simplifies build commands
* Fix OS X resource fork handling (Reported-by: Richard O'Keefe)Tuncer Ayaz2014-07-257-15/+21
| | | | | | | | | 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.
* Remove experimental label from 'eunit tests='Tuncer Ayaz2014-07-181-1/+1
|
* Follow-up typo fixes for #327Tuncer Ayaz2014-07-171-4/+4
|
* rebar_utils:otp_release/0: handle vsn like x.y.z**Tuncer Ayaz2014-07-171-2/+20
| | | | | | | | | As mentioned in the OTP documentation, licensed customers may use patched OTP installations where the otp_patch_apply tool adds a '**' suffix as a flag saying the system consists of application versions from multiple OTP versions. When we get such a version string, we drop the suffix, as we cannot obtain relevant information from it as far as tooling is concerned.
* Adapt arch string to versioning scheme changes (>= 17.x)Tuncer Ayaz2014-07-171-1/+22
|
* Fix minor whitespace and comment issues in rebar_utilsTuncer Ayaz2014-07-171-15/+27
|
* Merge branch 'minor-fixes' of https://github.com/tuncer/rebar into ↵Fred Hebert2014-07-152-6/+6
|\ | | | | | | tuncer-minor-fixes
| * Use correct types for OTP >=17.xTuncer Ayaz2014-06-292-3/+3
| |
| * Fix a few minor formatting inconsistenciesTuncer Ayaz2014-06-292-4/+4
| | | | | | | | | | * fix overlong lines * where appropriate use %% instead of %
* | Merge pull request #316 from talentdeficit/rebar_shell_314Fred Hebert2014-07-151-4/+26
|\ \ | | | | | | fix for #314 (rebar shell somehow blocks using io:format in gen_server handle_call)
| * | update group leaders when restarting user processalisdair sullivan2014-07-071-4/+26
| |/ | | | | | | | | | | | | | | | | | | | | ensure any processes with a reference to an old user process as their group leader are updated to use the new user process. this introduces a slight delay at startup as the system must wait for the new processes to be registered. there is a max wait period of three seconds (before the shell command gives up and throws a timeout error) fixes #314 ("rebar shell" somehow blocks using io:format in gen_server handle_call)
* | Merge branch 'erl-args-to-end' of https://github.com/NineFX/rebar into ↵Fred Hebert2014-07-151-10/+12
|\ \ | |/ |/| | | | | | | | | NineFX-erl-args-to-end Conflicts: THANKS
| * Fix bug 271varnerac-ubnt2014-06-271-10/+12
| | | | | | | | | | | | | | | | | | | | Moves ct_extra_params to the end of the generated ct_run command. This allows users to pass commands to the underlying emulator using -erl_args. The included rt test demonstrates that it is possible to pass an addtional option to ct_run and -erl_args at the same time. Finally, the test executes in regular and verbose modes because rebar constructs the ct_run command differently in verbose mode.
* | Revert "Merge pull request #281 from tuncer/rebar-h-internal"Fred Hebert2014-06-231-14/+0
| | | | | | | | | | This reverts commit 07e2232847baa634b7d09bdb87dafda6c6bcc4a4, reversing changes made to 37cf470ae9a07cdd2e0769f3af9a8b89fcde8db0.
* | Merge pull request #260 from dgud/dgud/windows-fix-pathsFred Hebert2014-06-181-4/+4
|\ \ | | | | | | Quote include/lib paths
| * | Quote include/lib pathsDan Gudmundsson2014-04-091-4/+4
| | | | | | | | | | | | | | | In OTP-17.0 paths on windows are not shortpaths anymore so they may contain spaces and parenthesis
* | | Merge pull request #285 from nevar/fix_inheritanceTristan Sloughter2014-06-151-7/+22
|\ \ \ | | | | | | | | Fix #249 (erlc regression)
| * | | Fix #249 (erlc regression)Slava Yurin2014-05-301-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The combination of changes to rebar_erlc_compiler, and the fact that erl_first_files is inherited, caused a regression. To fix that, ensure every project uses its own .rebar/erlcinfo. While at it, fix the issue that erl_first_files entries were not included when initializing the dep digraph. Reported-by: Louis-Philippe Gauthier Reported-by: Roland Karlsson Thanks: Tuncer Ayaz
* | | | Merge pull request #195 from fgallaire/switch_template_instructionsTristan Sloughter2014-06-141-0/+12
|\ \ \ \ | | | | | | | | | | Switch template instructions
| * | | | A switch variable can have multiple valuesFlorent Gallaire2013-12-111-3/+4
| | | | |
| * | | | Support switch template instructionsFlorent Gallaire2013-12-111-0/+11
| | | | |
* | | | | Wrap cover:stop() call as rebar_cover_utils:exit/0Tuncer Ayaz2014-06-143-3/+7
| | | | |
* | | | | rebar_eunit: disambiguate internal namingTuncer Ayaz2014-06-141-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partially revert naming changes introduced in 93689703c1: CoverageModules -> FilteredModules get_coverage_modules -> get_matching_modules Having the name "coverage" meaning "filtered/selected modules" can be confused with code coverage.
* | | | | Add code coverage analysis functionality to `qc'Andras Horvath2014-06-143-230/+294
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use `cover' with QuickCheck testing - Reuse the `cover_*' rebar.config options - Refactor cover-related code to separate module (`qc_cover_utils') for use with both `eunit' and `qc'
* | | | | Revert "Merge pull request #171 from fenollp/using-stdlib"Tristan Sloughter2014-06-141-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 3297ffec2c89c6b7135165b4bfaeaeb07167c33c, reversing changes made to 0401debb3cf23d67affbe465a7a438049180a608.
* | | | | Merge pull request #281 from tuncer/rebar-h-internalTristan Sloughter2014-06-141-0/+14
|\ \ \ \ \ | | | | | | | | | | | | Move include/rebar.hrl to src/rebar.hrl
| * | | | | Move include/rebar.hrl to src/rebar.hrlTuncer Ayaz2014-05-221-0/+14
| | |/ / / | |/| | | | | | | | | | | | | rebar.hrl is only meant to be used by src/*.
* | | | | Merge pull request #130 from yamt/ct-fixesTristan Sloughter2014-06-142-18/+26
|\ \ \ \ \ | | | | | | | | | | | | ct fixes
| * | | | | use the effective deps dir instead of hardcoding "deps"YAMAMOTO Takashi2014-05-302-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | suggested by @tuncer
| * | | | | fix double "the" in a commentYAMAMOTO Takashi2014-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | noted by @tuncer
| * | | | | Fix spec file look upYAMAMOTO Takashi2014-05-301-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When trying to skip spec files under deps/ directory, ignore "deps" component which is also included in Cwd. For example, "/home/deps/src/myapp/test/cover.spec" contains "deps" component but should not be skipped if Cwd is "/home/deps/src/myapp/".
| * | | | | Fix a format of a debug outputYAMAMOTO Takashi2014-05-301-1/+1
| | | | | |
* | | | | | Merge pull request #229 from tolbrino/tb-patch-envTristan Sloughter2014-06-132-2/+21
|\ \ \ \ \ \ | | | | | | | | | | | | | | Add REBAR to environment before executing hooks
| * | | | | | Add REBAR to environment before executing hooksTino Breddin2014-06-022-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | REBAR will be set to the rebar binary which was executed and runs the builds. Enables the use of the same binary for rebar invocations as part of a pre or post hook like so: ${REBAR} escriptize
* | | | | | | Merge pull request #171 from fenollp/using-stdlibTristan Sloughter2014-06-131-12/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Some optimisation/refactoring using stdlib's functions
| * | | | | | | Rebasing. Fix differences with c26b0c7 c996e98 b690842.Pierre Fenoll2014-06-131-10/+8
| | | | | | | |
| * | | | | | | Local corrections on string processing:Pierre Fenoll2014-06-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Corrected regexp: `[x|y]` -> `[xy]`. * Used an re:replace/4 option instead of multiple IOlist functions.
* | | | | | | | Merge pull request #119 from deadok22/qualified-test-specTristan Sloughter2014-06-131-68/+103
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Add qualified name tests specification (see #118)
| * | | | | | | | Add qualified name tests specification (see #118)Sergey Savenko2014-05-291-68/+103
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Augment 'tests' option of 'rebar eunit' command with ability to specify tests to run using module-qualified names. This change also forced me to change the way modules for coverage and for testing itself are selected - module-qualified tests specifications are now taken into consideration. Extend tests to cover new functionality. Update dialyzer_reference accordingly.
* | | | | | | | Merge pull request #136 from waisbrot/add-p4-supportFred Hebert2014-06-132-2/+67
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | Add support for the Perforce VCS client via the "p4" tool
| * | | | | | | Add 'p4' (Perforce) as a dependency typeNathaniel Waisbrot2014-03-172-2/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This calls the 'p4' command-line tool to checkout and sync Perforce trees. It involves significantly more special code in Rebar than using 'git p4', but it eliminates the indirection of Rebar->Git->Python->Perforce
* | | | | | | | Fix build for 17.0 using the solutiong proposed by @tsloughterMatwey V. Kornilov2014-06-082-7/+23
| |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | We use namespaced_types option to choose between dict() and dict:dict() types.
* | | | | | | erlc: replace if expression with case ofTuncer Ayaz2014-05-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Motivated by the bug fix in 2c4d7d1.
* | | | | | | erlc: fix typo in update_erlcinfo/3 clauseTuncer Ayaz2014-05-301-1/+1
| |/ / / / / |/| | | | |
* | | | | | Merge pull request #280 from talentdeficit/bettershellFred Hebert2014-05-272-21/+37
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | improve output when using `rebar shell`
| * | | | | improve behaviour of `rebar shell`alisdair sullivan2014-05-262-21/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attempt to emulate the behavior of `erl -pa ebin -pa deps/*/ebin` fix error messages and formatting issues of `rebar shell` by shutting down and restarting the user subsystem in a mode more hospitable to the shell than the simple user started when run as an escript. emulate `error_logger` behaviour when the shell is run via `erl` add documentation of the shell command limitations: the erlang interrupt handler is not enabled when running as an escript and there is no interface to re-enable it via erlang code. this means `ctrl-c` will immediately exit the running process unlike when running the shell via `erl`. `ctrl-g` is, however, unaffected the user subsystem is killed and restarted but not supervised. if your code somehow relies on the user subsystem crashing and restarting `rebar shell` may interfere with it's operation