summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Some post-review changes:Alexander Sedov2016-10-112-0/+6
| | | | | - restore path after loading applications, - helpful comments.
* Avoid backward-compatibility-breaking changes.Alexander Sedov2016-10-113-13/+15
|
* Made reading sys.configs consistent with OTP specification.Alexander Sedov2016-10-113-10/+13
|
* Rereading system configuration sets up persistent options if possible.Alexander Sedov2016-10-111-1/+7
|
* Made Common Test load the user's applications before slurping config.Alexander Sedov2016-10-111-0/+1
|
* Use all_src_dirs for include pathsFred Hebert2016-09-301-2/+2
| | | | Helps cover extra cases.
* Fix private includes when compiling in test profileFred Hebert2016-09-301-9/+14
| | | | | | | | | | | | | | When an include file is set in a private path (i.e. src/), the rebar3 compiler would not add them to the {i, Path} params -- only include/ and the project root were being added. This meant that when some extra source directories were added to the compile job, such as test/ when running under the test profile, the private include paths could not be shared with the test module. This patch fixes the issues (and adds tests) for such a specific case by adding all the configured include paths to the {i, Path} erl_opts arguments, yielding successful compile runs.
* Add support for behaviors, and not just behavioursBrujo Benavides2016-09-282-1/+4
|
* allow using an alternate regex to locate test modules during eunit runsalisdair sullivan2016-09-201-7/+12
| | | | | | | | {`eunit_test_regex`, Regex}` will use the supplied `Regex` instead of the default to locate tests in test dirs. note this matches only the filename, not the path. the regex is applied to all test dirs, recursively fixes #1331
* Merge pull request #1332 from erlang/rebar-1327Fred Hebert2016-09-201-1/+15
|\ | | | | compile + cover compile prior to analyzing coverdata
| * only compile/cover compile when generating analysisalisdair sullivan2016-09-201-4/+13
| | | | | | | | don't compile when resetting coverdata
| * cover compile prior to calculating coveragealisdair sullivan2016-09-201-1/+6
| | | | | | | | fixes #1327
* | recompile all files when a parse transform given as an opt needs updatingalisdair sullivan2016-09-201-1/+15
|/ | | | | | | | | there's no way to detect which files actually rely on a parse transform passed to the compiler via the options (as opposed to `-compile(..)` so if any parse transforms are in modules that need recompiling just recompile the world fixes #1328
* Merge pull request #1321 from vans163/error_on_load_file_failureFred Hebert2016-09-151-2/+13
|\ | | | | log error if a module failed to load_file, the user should be aware
| * replace error with debugvans1632016-09-031-2/+2
| |
| * log error if a module failed to load_file, the user should be awarevans1632016-09-031-2/+13
| |
* | Ignore mv warningsDavid de Boer2016-09-151-3/+8
| | | | | | | | | | | | | | In some cases, mv will throw a warning, while still moving the files correctly and returning a 0 return code: "mv: can't preserve ownership of ... Permission denied".
* | Back to semver version post releaseFred Hebert2016-09-021-1/+1
| |
* | Bump to 3.3.1Fred Hebert2016-09-021-1/+1
|/
* delete purge load_file specific ordervans1632016-09-021-1/+1
|
* Make less than R17 compatiblevans1632016-09-011-7/+11
|
* comment and spacing fixupvans1632016-09-011-5/+4
|
* Update rebar_agent.erlvans1632016-09-011-3/+3
| | | opps. Infinite loop fixed.
* Update rebar_agent.erlvans1632016-09-011-2/+29
| | | | https://github.com/erlang/rebar3/pull/1317 In reference to with support to load erlang code atomically but load nifs non-atomically.
* Merge pull request #1318 from tuncer/conventional-stacktraceFred Hebert2016-08-311-1/+1
|\ | | | | Print stacktrace in a more conventional way
| * Print stacktrace in a more conventional wayTuncer Ayaz2016-08-301-1/+1
| | | | | | | | | | | | Insert a newline before printing the stacktrace so that the term is easier to read and copy. This is a more conventional way to print traces, and is, for instance, the way it's done by make and python.
* | reset accumulated coverdata on writing out to disk. this preventsalisdair sullivan2016-08-271-0/+2
| | | | | | | | | | provider chains like `eunit, ct, proper` from misreporting cover stats from providers later in the sequence
* | Merge pull request #1315 from ferd/fix-hashcheck-noindexFred Hebert2016-08-271-1/+10
|\ \ | | | | | | Fix crash when doing hash check with missing index
| * | Fix crash when doing hash check with missing indexFred Hebert2016-08-271-1/+10
| |/ | | | | | | | | | | | | | | | | | | Specifically, when fetching an application where the expected hash is unknown, the hash is validated from the hex index; when the index is available, the hash is fetched fine and later inserted in the lock file. However, if the index is not available, the call would simply crash. This patch fixes thing so that instead, the index is refreshed before giving up and failing.
* | Re-format cover exclusion codeFred Hebert2016-08-271-17/+26
| | | | | | | | | | | | - brings back former error handling and debug messages - keeps the filtering of excluded mods and debug messages - breaks up code into multiple functions and removes nesting
* | Merge branch 'cover_excl_mods' of https://github.com/lpgauth/rebar3 into ↵Fred Hebert2016-08-271-15/+23
|\ \ | |/ |/| | | lpgauth-cover_excl_mods
| * Add support for cover_excl_modsLouis-Philippe Gauthier2016-06-151-15/+23
| |
| * Cutting 3.1.1Fred Hebert2016-05-171-1/+1
| |
* | Returning to git-based taggingFred Hebert2016-08-261-1/+1
| |
* | Bumping to 3.3.0Fred Hebert2016-08-261-1/+1
| |
* | Equivalent trim_all in bin split for <17.xFred Hebert2016-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The trim_all option used in binary:split/3 is not supported in 17.x. This patch makes an equivalent operation by eliminating empty split fragments. From the docs: trim Removes trailing empty parts of the result (as does trim in re:split/3. trim_all Removes all empty parts of the result. The new expression is therefore equivalent to the old one, but with the added benefit of compatibility. Fixes #1275
* | Make Edoc carry paths of pre-built librariesFred Hebert2016-08-251-9/+26
| | | | | | | | | | | | | | | | | | | | | | Given the topological sort applied to top-level apps, we should be able to carry the edoc values for paths configured when more than one app exists. This allows multiple disjoint app to have defined cross-linking in the documentation. Tests pending.
* | Print error on too many help argumentsRasmus Svensson2016-08-151-1/+4
| | | | | | | | | | | | | | Previously the help task would crash when given more than two arguments. After this change it instead print a message: Too many arguments given. Usage: rebar3 help [<namespace>] <task>
* | Make the escriptize provider hookableFred Hebert2016-08-131-2/+7
| | | | | | | | This will allow to move and modify the generated files
* | Merge pull request #1298 from ferd/escript-filter-paths-fixFred Hebert2016-08-101-1/+3
|\ \ | | | | | | Fix filtering of system libraries in escriptize
| * | Fix filtering of system libraries in escriptizeFred Hebert2016-08-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/erlang/rebar3/pull/1249 introduced a mechanism by which escript dependencies of applications only would be included; this required adding a filter to skip system libraries in the OTP root because that tends to break escripts in very nasty ways. However, the problem came that some libraries are just not in the escript path but may still be included; for these libraries the path prefix check failed as they return `{error, bad_name}` from `code:lib_dir(Dep)` rather than just the path they're in -- specifically, this happens with top level apps. The issue was reported in https://github.com/erlang/rebar3/issues/1294 and the current patch fixes it by accepting a `bad_name` dep as valid, since it is obviously not in the root path.
* | | Merge pull request #1288 from ElectronicRU/masterFred Hebert2016-08-101-1/+1
|\ \ \ | | | | | | | | Typo fix.
| * | | Typo fix.Alexander Sedov2016-08-041-1/+1
| |/ /
* | | Merge pull request #1282 from ssbx/custom_template_dirFred Hebert2016-08-101-1/+1
|\ \ \ | | | | | | | | template_dir option was forgotten in documentation plus recurse in di…
| * | | template_dir option was forgotten in documentation plus recurse in directory ↵Sébastien Serre2016-07-231-1/+1
| | | | | | | | | | | | | | | | added
* | | | Handle `escriptize` when the specified app is missingNathaniel Waisbrot2016-08-041-2/+6
| |/ / |/| | | | | | | | | | | When rebar.config contains a `escript_main_app` option, but the specified app doesn't exist in the build directory, print an error.
* | | Merge pull request #1274 from deadtrickster/ssl_verify_fun_bumpFred Hebert2016-08-011-1/+1
|\ \ \ | | | | | | | | ssl_verify_hostname was renamed to ssl_verify_fun
| * | | ssl_verify_hostname was renamed to ssl_verify_funIlya Khaprov2016-07-151-1/+1
| | | |
* | | | Merge pull request #1279 from gbour/fix-dialyzeralisdair sullivan2016-07-311-0/+2
|\ \ \ \ | |_|/ / |/| | | fix catching `not_valid` error on dialyzer
| * | | Fix return error on `not_valid` to force .plt file regenerationGuillaume Bour2016-07-301-2/+1
| | | |