summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Roll rebar version 2.3.02.3.0Jared Morrow2014-05-132-1/+34
|
* Merge pull request #252 from tuncer/file_utils-errorsJared Morrow2014-04-243-7/+8
|\ | | | | file_utils: properly report errors (fix #95)
| * file_utils: properly report errors (fix #95)Tuncer Ayaz2014-04-113-7/+8
| | | | | | | | While at it, improve the error message printed by rebar_utils:sh/2.
* | Merge pull request #269 from goofansu/patch-1Jared Morrow2014-04-241-0/+1
|\ \ | | | | | | Update THANKS
| * | Update THANKSgoofansu2014-04-181-0/+1
| | | | | | | | | Add my name to THANKS
* | | Merge pull request #268 from tuncer/code-path-regressionJared Morrow2014-04-2416-90/+210
|\ \ \ | |/ / |/| | Fix #267 (code path regression)
| * | Fix #267 (code path regression)Tuncer Ayaz2014-04-2316-52/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the introduction of -r/--recursive, deps were not properly added to the code path when running ct, eunit, etc. To fix that, pass a flag down to process_dir1 and conditionalize execution of the command. This moves the decision into process_dir1 where we can decide to invoke preprocess/2 and postprocess/2 but not execute the command. Without this fix, you'd have to, for example, invoke 'rebar -r ct skip_deps=true', if you wanted to run base_dir's ct suites with deps on the code path (while skipping all non-base_dir ct suites). So, with this patch applied, if you run $ rebar ct deps will be on the code path, and only base_dir's ct suites will be tested. If you want to test ct suites in base_dir and sub_dirs, you have to run $ rebar -r ct skip_deps=true If you want to test ct suites in all dirs, you have to run $ rebar -r ct The fix is not specific to ct and applies to all commands. To be able to add inttest/code_path_no_recurse/deps, I had to fix .gitignore. While at it, I've updated and fixed all entries.
| * | rebar_core: consistently order args and simplify codeTuncer Ayaz2014-04-201-59/+55
|/ / | | | | | | | | | | | | | | | | | | | | | | | | * Fix arg order: The order of arguments got inconsistent over time. To fix that, use the same consistent order in all functions. * Avoid one erlang:'++'/2 call in process_dir/6. * Avoid lists:prefix/2 and atom_to_list/1 calls: We can easily avoid 2 lists:prefix/2 calls and one atom_to_list/1 call in execute/5 by passing in whether the command is a hook or not. The resulting code is simpler and easier to read.
* | Merge pull request #265 from goofansu/fix-qc-help-cleanJared Morrow2014-04-161-1/+4
|\ \ | | | | | | Fix 'rebar help clean' function_clause error
| * | Fix 'rebar help clean' function_clause errorgoofansu2014-04-121-1/+4
|/ / | | | | | | Missing info(help, clean) in rebar_qc.erl.
* | Merge pull request #254 from tuncer/fix-generateJared Morrow2014-04-111-1/+21
|\ \ | |/ |/| Fix 'rebar generate' regression (#253)
| * Fix 'rebar generate' regression (#253)Tuncer Ayaz2014-03-301-1/+21
| | | | | | | | | | | | | | | | | | | | If the directory we're about to process contains reltool.config[.script] and the command to be applied is 'generate', then it's safe to process. We do this to retain the behavior of specifying {sub_dirs, ["rel"]} and have "rebar generate" pick up rel/reltool.config[.script]. Without this workaround you'd have to run "rebar -r generate" (which you don't want to do if you have deps or other sub_dirs) or "cd rel && rebar generate".
* | Merge pull request #237 from norton/norton-17Andrew Thompson2014-04-092-2/+26
|\ \ | |/ |/| Add partial support for Erlang/OTP 17
| * Add partial support for Erlang/OTP 17Joseph Wayne Norton2014-03-292-2/+26
|/ | | | | | | Allow rebar to compile applications using Erlang/OTP 17 and older versions. This patch only provides partial support since the rebar tool itself must be compiled using an Erlang/OTP version that is older than 17.
* Merge branch 'tuncer-auto-recursion'Jared Morrow2014-03-1112-20/+134
|\
| * Keep compile recursive and update the tests to not pass -r to compileJared Morrow2014-03-115-5/+6
| |
| * Fix #226Tuncer Ayaz2014-03-111-1/+2
| | | | | | | | | | | | Running 'rebar list-templates' can take quite a long time, when it has to search the file system. To fix that, make list-templates not recurse by default. To enable recursion, run 'rebar -r list-templates'.
| * Fix #56 (always-on recursion)Tuncer Ayaz2014-03-1112-20/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always-on recursive application of all rebar commands causes too many issues. Recursive application is required for: 1. dealing with dependencies: get-deps, update-deps, and compile of deps right after get-deps or update-deps 2. projects with a riak-like apps/ project structure and dev process The vast majority of projects are not structured like riak. Therefore, moving forward it's best to (by default) restrict recursive behavior to dealing with deps. This commit does that and also adds command line and rebar.config options for controlling or configuring recursion. Also, we introduce two meta commands: prepare-deps (equivalent to rebar -r get-deps compile) and refresh-deps (equivalent to rebar -r update-deps compile). riak-like projects can extend the list of recursive commands (to include 'eunit' and 'compile') by adding {recursive_cmds, [eunit, compile]} to rebar.config.
* | Merge pull request #208 from goofansu/fix-typo-rebar-erlydtl-compilerJared Morrow2014-03-051-1/+1
|\ \ | |/ | | Fix typo in rebar_erlydtl_compiler
| * Fix typo in rebar_erlydtl_compilergoofansu2014-03-061-1/+1
|/
* Merge pull request #139 from rnewson/depmodsJared Morrow2014-03-051-17/+26
|\ | | | | Allow specification of module dependencies for appups
| * Allow specification of module dependencies for appupsRobert Newson2013-09-201-17/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The order in which modules, within an application, are loaded can be important. This patch adds allows the specification of module dependencies such that generate .appup/.relup scripts will load a module's dependent modules before itself. To use: in rebar.config, add a module_deps {module_deps, [{ModuleName, [DependentModuleName, ...]}]}. ModuleName is the name of any module, followed by a list of module names that it depends on.
* | Merge pull request #115 from mdaguete/simplenode.runner-remsh-fixesAndrew Thompson2014-03-051-3/+29
|\ \ | | | | | | Incorrect REMSH args when sname is used.
| * | Make REMSH node run in hidden modeManuel Durán Aguete2013-07-191-1/+1
| | | | | | | | | | | | | | | To avoid problems with REMSH node being visible from another nodes starts it in hidden mode (erl -hidden).
| * | Incorrect REMSH args when sname is usedManuel Durán Aguete2013-07-191-2/+28
| |/ | | | | | | | | | | | | | | | | | | When a node is configured with -sname in app.config or sys.config the REMSH_NAME_ARG and REMSH_REMSH_ARG arguments are incorrect due the assumption that the node name always contains '@'. To fix the bug, the script tries to find '@' and then compose the arguments acording to node name type. If in long name mode the script can't compose a correct node name exits with warning.
* | Merge pull request #234 from tuncer/fix-220Andrew Thompson2014-03-051-10/+11
|\ \ | | | | | | Fix #220 (Reported-by: Joseph Norton)
| * | Fix #220 (Reported-by: Joseph Norton)Tuncer Ayaz2014-03-051-4/+4
| | | | | | | | | | | | | | | When running 'rebar qc' or 'rebar eunit', we were erroneously fetching erl_opts more than once.
| * | erlc: fix commentTuncer Ayaz2014-03-051-6/+7
| | | | | | | | | | | | | | | test_compile/3 is used by eunit and qc, but the comment was only referring to 'rebar eunit'.
* | | Merge pull request #98 from jcomellas/jc-no-erl-libs-repetitionJared Morrow2014-03-051-1/+11
|\ \ \ | |/ / |/| | Repetition of environment variable definitions in child processes (ports)
| * | Avoid passing more than one instance of ERL_LIBS to child processesJuan Jose Comellas2013-06-131-1/+11
| | | | | | | | | | | | | | | | | | This commit fixes issue #98 by removing the ERL_LIBS and REBAR_DEPS_DIR from the list of environment variables exported by the rebar_port_compiler plugin.
* | | Merge pull request #175 from tuncer/cwd-plugins-regressionJared Morrow2014-03-057-18/+59
|\ \ \ | | | | | | | | CWD plugins regression
| * | | inttest/depplugins: update docsTuncer Ayaz2014-01-011-5/+8
| | | |
| * | | Fix regression caused by 252b31f (#90)Tuncer Ayaz2014-01-011-1/+6
| | | |
| * | | rebar_core: minor comment fixTuncer Ayaz2014-01-011-1/+1
| | | |
| * | | Add test for regression caused by 252b31f (#90)Tuncer Ayaz2014-01-016-11/+44
| | | |
* | | | Merge pull request #129 from tuncer/erlc-speedup-v5Andrew Thompson2014-03-058-120/+363
|\ \ \ \ | | | | | | | | | | Speed up the compilation process v5
| * | | | erlc: clean-up, enhance, and regression fix fd17693Tuncer Ayaz2014-03-058-74/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update files * fix Dialyzer warning * unconditionally enable info fil * clean-up inconsistencies * use term_to_binary compression * use try...catch instead of case...catch...of * do not write build info file if the graph is unmodified * store info file as <base_dir>/.rebarinfo * properly support list of compile directives * fix regressions: - Fix a bug in handling of files to compile first. - If a file that is depended upon itself depends on other files, make sure those are compiled first. While at it, rename variables for correctness. Reported-by: David Robakowski - Make sure that FirstFiles has no dupes and preserves the proper order. - headers referenced via -include_lib() were not properly resolved to absolute filenames - .erl files found in sub dirs of src_dirs were not properly resolved to absolute filenames
| * | | | erlc: add support for detecting core transformsAnthony Ramine2014-03-051-0/+2
| | | | |
| * | | | Speed up the compilation processEvgeniy Khramtsov2014-03-051-108/+212
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Do not parse source files twice while checking for relationship. * Keep files relationships in a graph. * The option 'keep_build_info' is introduced. When set to 'true' the graph will be kept in ebin/.rebar.build.info and will be used by further compiler calls. The default is 'false'.
* | | | Merge pull request #233 from tuncer/commandsJared Morrow2014-02-251-5/+6
|\ \ \ \ | | | | | | | | | | docs: fix #228
| * | | | docs: fix #228Tuncer Ayaz2014-02-251-5/+6
|/ / / /
* | | | Merge pull request #230 from tuncer/fix-dialyzer-warningsJared Morrow2014-02-252-2/+2
|\ \ \ \ | | | | | | | | | | eunit: fix dialyzer warnings introduced in 03da5e0b
| * | | | eunit: fix dialyzer warnings introduced in 03da5e0bTuncer Ayaz2014-02-202-2/+2
| | | | |
* | | | | Merge pull request #232 from tuncer/doc-abbrev-cmdJared Morrow2014-02-251-0/+12
|\ \ \ \ \ | | | | | | | | | | | | Document support for abbreviated commands
| * | | | | Mention rebar -c/--commandsTuncer Ayaz2014-02-241-0/+2
| | | | | |
| * | | | | Document support for abbreviated commandsTuncer Ayaz2014-02-241-0/+10
|/ / / / /
* | | | | Merge pull request #221 from kaos/erlydtlJared Morrow2014-02-241-9/+20
|\ \ \ \ \ | |/ / / / |/| | | | Adapt erlydtl compiler plugin to latest version of erlydtl
| * | | | {ok, Module} is an acceptable return value from do_compile.David N. Welton2014-02-141-0/+2
| | | | |
| * | | | Use proplists:unfold to make sure we feed a proplist to keymerge.David N. Welton2014-02-141-8/+9
| | | | |
| * | | | Adapt erlydtl compiler plugin to latest version of erlydtlAndreas Stenius2014-02-141-3/+11
|/ / / /