summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix default .app.src file for rebar_app_infoFred Hebert2017-02-241-7/+6
| | | | | | | The finding of the file was done based on an assumed 'src' path which may not be correct. This patch instead replaces the value with a lookup in configured paths and returns the first that matches to an existing file.
* Fix detection of src_dirs in unknown apps/depsFred Hebert2017-02-231-11/+49
| | | | | First find the rebar.config file, and if any data is found, check for src_dirs config. If nothing is there or no app is found, default to src/
* Fix plugins usage to support src_dirs optionsFred Hebert2017-02-191-2/+5
|
* For convenience add appinfo default src_dir lookupFred Hebert2017-02-191-1/+5
| | | | This makes rebar_prv_install_deps able to support more src_dir configs
* Add respect for src_dirs option in app_discoverFred Hebert2017-02-191-29/+52
| | | | | This lets people who use custom directories layout without leaving the .app.src in src/ to still see their app build.
* Merge pull request #1473 from ferd/global-plugin-tpl-supportFred Hebert2017-02-061-0/+11
|\ | | | | Add support for global plugin-defined templates
| * Add support for global plugin-defined templatesFred Hebert2017-02-061-0/+11
| | | | | | | | | | Did not really know how to automate the testing for this, did it by hand.
* | catch badarg exception from eunit in `rebar_prv_eunit`alisdair sullivan2017-02-051-7/+10
|/ | | | fixes #1469
* Go back to git-generated versionFred Hebert2017-02-031-1/+1
|
* Bump to 3.3.5Fred Hebert2017-02-031-1/+1
|
* Fix printing path with unicode names in prv_updateFred Hebert2017-02-031-2/+2
|
* Merge pull request #1463 from varnerac/cover_exclude_appsFred Hebert2017-01-301-8/+9
|\ | | | | Allow exclusion of apps in cover
| * Allow exclusion of apps in coverDrew Varner2017-01-301-8/+9
| | | | | | | | | | Adds a new option `{cover_excl_apps, Apps}` to exclude apps from coverage analysis by name.
* | consider `ERL_COMPILER_OPTIONS` when recompilingalisdair sullivan2017-01-281-3/+13
| | | | | | | | | | | | on 19.x forward the compiler should now take into consideration the value of the environment variable `ERL_COMPILER_OPTIONS` when deciding whether or not to recompile a module
* | Survive EDoc crashesFred Hebert2017-01-271-9/+27
| | | | | | | | | | | | | | | | | | | | | | Instead of a hard crash, display an error message indicating which app failed. We can't report the exact failure; only EDoc does it to stdout itself and we can't capture it. Pre/Post hooks are run properly despite the failure, as per escript and compile providers.
* | Merge pull request #1449 from ferd/fix-localinstall-tpl-pathalisdair sullivan2017-01-272-7/+16
|\ \ | | | | | | See template local install same builtin as escript
| * | See template local install same builtin as escriptFred Hebert2017-01-212-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the `new` command is run from a locally installed rebar3 (`rebar3 local install`), the builtin templates would be labelled as custom because of directories. This patch fixes it by splitting off the rebar3 priv dir from the user's configured plugin path for custom ones, and introducing a new internal label for builtins (since handling must remain different from escripts) This fixes issue #819
* | | Re-fix the windows file movementFred Hebert2017-01-271-33/+45
| | | | | | | | | | | | and clean up a bit
* | | Fix mv command on windowsFred Hebert2017-01-271-18/+87
| |/ |/| | | | | | | | | | | Requires changing a bunch of arguments for xerocopy since it does not allow to rename while copying. Lots of tests added
* | Enable path reformatting for DialyzerFred Hebert2017-01-212-10/+13
| | | | | | | | | | | | | | | | Fixes issue #880 May break backwards compat with projects that manually called the dialyzer formatter, but we never documented or expected this to be exposed.
* | Extract code path formatting out of compilerFred Hebert2017-01-213-24/+40
|/ | | | | | | | This allows to reuse the code for any provider that formats source files out to the user. The option to configure it does remain compiler-centric for backwards compatibility
* add option to pass args to user_drv for custom shellsTristan Sloughter2016-12-311-6/+16
|
* Back to git-based versionsFred Hebert2016-12-231-1/+1
|
* Bumping to 3.3.4Fred Hebert2016-12-231-1/+1
|
* Merge pull request #1391 from ferd/doc-and-typesFred Hebert2016-12-2317-97/+792
|\ | | | | Type specifications and edocs improvements
| * Fix Alisdair's review, add more types and docsFred Hebert2016-12-165-25/+109
| |
| * Type specifications and edocs improvementsFred Hebert2016-11-2716-75/+686
| | | | | | | | | | | | Includes improvments and function documentation for all modules (in alphabetical order) up to rebar_core, and may have included more in other modules as I saw fit to dig and understand more of the internals.
* | Merge pull request #1407 from sirihansen/ct-testspec-optsFred Hebert2016-12-231-76/+145
|\ \ | | | | | | Improve merge of command line options and config options in CT
| * | Handle errors from ct_testspecSiri Hansen2016-12-221-3/+5
| | |
| * | Make sure ct_testspec is loadedSiri Hansen2016-12-221-0/+1
| | | | | | | | | | | | ... before calling erlang:function_exported(ct_testspec,get_tests,1).
| * | Add all dirs from test specSiri Hansen2016-12-201-12/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parse given test specs and add all spec- and suite directories as extra_src_dirs in order to ensure that all these directories are copied to the _build area and the suites are compiled. Specs located in the project- or app root are explicitly copied to the _build area in order to avoid recursive copying of the complete directory tree.
| * | Allow using relative path to suite in project rootSiri Hansen2016-12-131-14/+1
| | |
| * | Translate path to testspecSiri Hansen2016-12-091-33/+28
| | | | | | | | | | | | | | | | | | This is a bugfix. It makes sure that the given path to a testspec is translated so common_test will pick the spec from the _build directory, and not from the source tree.
| * | Add directory of testspec as extra_src_dirSiri Hansen2016-12-081-8/+8
| | | | | | | | | | | | | | | | | | This is necessary in order to automatically get the testspec included as an artifact (i.e. copied to the _build dir) in the case when it is stored in another directory than 'test'.
| * | Improve merge of command line options and config optionsSiri Hansen2016-12-071-25/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: option 'spec' is not specifically handled when merging options from the command line with options from rebar.config. Due to this, if the config specifies a 'spec', then this will take precedence over any 'dir' and/or 'suite' on the command line. This commit takes special care of all options that can be used to select tests - meaning that if any of the options 'spec', 'dir', 'suite', 'group' or 'case' are specified on the command line, then all 'spec', 'dir', 'suite', 'group' and 'case' options in rebar.config will be ignored.
* | | eunit: remove application modules from the modules eligible to testalisdair sullivan2016-12-231-4/+5
| | | | | | | | | | | | | | | application modules will be added to the eunit test set automatically, no need to consider them for inclusion in the test set separately
* | | don't filter eunit test modules based on file extensionalisdair sullivan2016-12-221-2/+2
| | | | | | | | | | | | | | | | | | stops the eunit provider from filtering out test modules based on the file extension. previously, it was hardcoded to expect all test files ended in `.erl`. this change allows for endings like `.lfe` and `.beam`
* | | Merge pull request #1415 from lrascao/feature/rebar_shell_fixFred Hebert2016-12-161-0/+4
|\ \ \ | | | | | | | | shell: don't crash apps that use release version operators
| * | | shell: don't crash apps that use release version operatorsLuis Rascao2016-12-111-0/+4
| | | | | | | | | | | | | | | | Like for instance: {app, "0.1.0", '='}
* | | | the releases website has changedgetong2016-12-141-1/+1
|/ / /
* | | Merge pull request #1411 from ferd/fix-regex-matchesalisdair sullivan2016-12-094-4/+4
|\ \ \ | | | | | | | | Fix regex match for ignored file
| * | | Fix regex match for ignored fileFred Hebert2016-12-094-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The regex mistakenly matched too many files (any character followed by an underscore) rather than only files starting in '._' This properly escapes the expressions to work in all cases.
* | | | Merge pull request #1405 from erlang/get-depsFred Hebert2016-12-092-0/+38
|\ \ \ \ | |/ / / |/| | | add `get-deps` provider
| * | | add `get-deps` provideralisdair sullivan2016-12-072-0/+38
| |/ / | | | | | | | | | a no-op provider that depends on lock that is slightly more discoverable and user friendly
* | | Go back to git-based versioningFred Hebert2016-12-081-1/+1
| | |
* | | Bump to 3.3.3Fred Hebert2016-12-081-1/+1
| | |
* | | Use different git commands for different git versionsBjörn-Egil Dahlberg2016-12-071-13/+59
|/ / | | | | | | | | | | | | | | | | | | The option --single-branch was introduced in git version 1.7.10 and thus rebar3 cannot fetch git dependencies on systems where earlier git versions are install. This commit will select other git clone commands if an earlier git version is detected. If the git version cannot be determined rebar3 falls back on the previous behavior and uses --single-branch.
* | Restrict regexp to match on files starting with '._'Roberto Aloi2016-12-064-4/+4
| |
* | Addresses https://github.com/erlang/rebar3/issues/1397Ted Burghart2016-12-051-33/+60
| | | | | | | | | | | | Ensures merged compiler options end up in the correct order to maintain profile precedence. Moves the merge functionality from rebar_opts:merge_opts/2 to a standalone function to ease extension and debugging.
* | 1394: refined export list and testsArtem Pervin2016-12-011-2/+2
| |