Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unicode support in all the places | Fred Hebert | 2017-08-06 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done through 3 main change groups: - replacing `~s` by `~ts` in format strings, so that strings that contain unicode are properly printed rather than crashing - adding the `unicode` argument to all function of the `re` module to ensure transformations on strings containing unicode data are valid instead of crashing (see issue #1302) - replacing `ec_cnv:to_binary/1` and `ec_cnv:to_list/1` with matching functions in `rebar_utils`. The last point has been done, rather than modifying and updating erlware commons, because binary and list conversions can be a contentious subject. For example, if what is being handled is actually bytes from a given binary stream, then forcing a byte-oriented interpretation of the data can corrupt it. As such, it does not appear safe to modify erlware commons' conversion functions since it may not be safe for all its users. Instead, rebar3 reimplements a subset of them (only converting atoms and chardata, ignoring numbers) with the explicit purpose of handling unicode string data. Tests were left as unchanged as possible. This may impact the ability to run rebar3's own suites in a unicode path, but respects a principle of least change for such a large patch. | ||||
* | Include hook for app compilation | Zachary Hueras | 2016-02-09 | 1 | -4/+7 |
| | |||||
* | Add secondary hook for rebar_prv_compile | Zachary Hueras | 2016-02-02 | 1 | -7/+11 |
| | | | | | erlc_compile, for before/after compiling .erls to .beams, but before .app.src to .app | ||||
* | warn if the directories `eunit' or `ct' show up in `src_dirs' | alisdair sullivan | 2016-01-05 | 1 | -2/+17 |
| | | | | | | | | if these directories actually exist they'll be added to the path ahead of the release/standard distribution directories and they'll break eunit and/or ct execution fixes #950 | ||||
* | allow ct suites to be specified at the root of a project (or root of app) | alisdair sullivan | 2015-12-20 | 1 | -0/+4 |
| | | | | | | | | previously rebar3 dropped suites declared at the root of the project (via `--suite=whatever_SUITE' probably) and warned. this was because the compiler would recursively copy and compile everything in the directory indicated by the test suite. this changes the copy mechanism to only copy erl source files and directories that end with `_SUITE_data' into the `extras' dir in `_build' | ||||
* | refactor `rebar_erlc_compiler` | alisdair sullivan | 2015-10-26 | 1 | -12/+107 |
| | | | | | | | | | | | | | | | | | | | * modify compiler interface to work on either application objects or directories containing source files * compile all sources in `src_dirs` to the application `ebin` dir and all sources in `extra_src_dirs` to a directory mirroring it's position in the app's `_build` directory. for example, `apps/foo/more` would compile to `_build/default/lib/foo/more` for `extra_src_dirs` in the root of a project with multiple applications (so orphan directories that don't "belong" to an application) compile to `_build/default/extras/more` * copy directories specified in `extra_src_dirs` into the `_build` directory so tools like `ct` and `xref` that expect source to be in a particular location still work * clean compiled artifacts from all `extra_src_dirs` * alter `eunit`, `ct` and `cover` to work with the new directory structure * billions of new tests | ||||
* | add bare compile provider, for starters for use by mix | Tristan Sloughter | 2015-09-14 | 1 | -1/+5 |
| | |||||
* | support updating of per app info by hooks | Tristan Sloughter | 2015-09-06 | 1 | -8/+8 |
| | |||||
* | more cleanup | Tristan Sloughter | 2015-08-31 | 1 | -9/+0 |
| | |||||
* | update use of hooks and plugins with state in app_info | Tristan Sloughter | 2015-08-31 | 1 | -13/+17 |
| | |||||
* | remove state record from app_info record | Tristan Sloughter | 2015-08-31 | 1 | -2/+2 |
| | |||||
* | wip: move state into app_info | Tristan Sloughter | 2015-08-31 | 1 | -8/+8 |
| | |||||
* | Merge pull request #613 from tsloughter/plugins_fix_path | Fred Hebert | 2015-07-16 | 1 | -1/+2 |
|\ | | | | | keep plugins in path after compile provider run | ||||
| * | keep plugins in path after compileprovider run | Tristan Sloughter | 2015-07-15 | 1 | -1/+2 |
| | | |||||
* | | Revert "don't add `{extra_src_dirs, ["test"]}` to `test` profile" | alisdair sullivan | 2015-07-12 | 1 | -1/+1 |
|/ | | | | This reverts commit b06a6ecaddfc6fea16f3c24881fd41ac731ffa9e. | ||||
* | ensure necessary directories exist to compile mibs files | Tristan Sloughter | 2015-07-06 | 1 | -0/+13 |
| | |||||
* | add config option artifacts | Tristan Sloughter | 2015-06-02 | 1 | -0/+13 |
| | |||||
* | keep all_deps list in state created for building deps | Tristan Sloughter | 2015-05-30 | 1 | -4/+7 |
| | |||||
* | Merge pull request #487 from ferd/fix-provider-bareness | Tristan Sloughter | 2015-05-30 | 1 | -1/+1 |
|\ | | | | | fix bareness issues | ||||
| * | fix bareness issues | Fred Hebert | 2015-05-31 | 1 | -1/+1 |
| | | | | | | | | | | | | - Crashes in providers lib when no providers in a namespace are bare - Making sure bareness matches semantics; i.e. a bare provider is visible, a non-bare provider is hidden. | ||||
* | | store plugin providers in app_info's state for deps | Tristan Sloughter | 2015-05-28 | 1 | -1/+0 |
| | | |||||
* | | fix for plugin installation and code paths | Tristan Sloughter | 2015-05-27 | 1 | -0/+3 |
| | | |||||
* | | move handling of undefined app state to function | Tristan Sloughter | 2015-05-22 | 1 | -9/+1 |
|/ | |||||
* | run hooks when building plugins | Tristan Sloughter | 2015-05-21 | 1 | -8/+7 |
| | |||||
* | Merge pull request #443 from kovyl2404/singleapp-project-duplicated-hook | Fred Hebert | 2015-05-21 | 1 | -1/+1 |
|\ | | | | | Run hooks for single application only once. | ||||
| * | Properly reset hooks for single-app project | Viacheslav V. Kovalev | 2015-05-21 | 1 | -1/+1 |
| | | |||||
* | | don't add `{extra_src_dirs, ["test"]}` to `test` profile | alisdair sullivan | 2015-05-20 | 1 | -1/+1 |
| | | | | | | | | | | | | adding it results in ct test suites being compiled before they're properly copied so changes made to suites between runs are not reflected if a run fails before test dirs are copied | ||||
* | | methods for retrieving `src_dirs` and `extra_src_dirs` | alisdair sullivan | 2015-05-19 | 1 | -3/+1 |
|/ | | | | | | note that now ALL `src_dirs` across included profiles are compiled. previously only the last included profile's `src_dirs` were used | ||||
* | generalize the "test" special dir into an {extra_src_dirs, [...]} option | alisdair sullivan | 2015-05-16 | 1 | -2/+3 |
| | | | | | | like `src_dirs`, `extra_src_dirs` are directories to be copied to the `_build` dir and compiled. unlike `src_dirs` they are not added to the .app specification | ||||
* | real bootstrapping | Tristan Sloughter | 2015-04-22 | 1 | -2/+1 |
| | |||||
* | track and cleanup code paths for different contexts | Tristan Sloughter | 2015-04-21 | 1 | -2/+9 |
| | |||||
* | run project wide pre-compile hooks after deps have compiled | Tristan Sloughter | 2015-04-20 | 1 | -2/+3 |
| | |||||
* | don't duplicate hooks for top level app | Tristan Sloughter | 2015-04-19 | 1 | -7/+4 |
| | |||||
* | update project_apps and state before running post hooks | Tristan Sloughter | 2015-04-17 | 1 | -2/+4 |
| | |||||
* | include applications list in compile sort | Tristan Sloughter | 2015-04-15 | 1 | -2/+3 |
| | |||||
* | Merge pull request #320 from tsloughter/dep_plugins | Fred Hebert | 2015-04-05 | 1 | -9/+13 |
|\ | | | | | install dep plugins & run provider hooks the same as shell hooks (Rereopen 316) | ||||
| * | swich clean and compile to use macro provider in hook run | Tristan Sloughter | 2015-04-04 | 1 | -4/+4 |
| | | |||||
| * | install dep plugins & run provider hooks the same as shell hooks | Tristan Sloughter | 2015-04-04 | 1 | -9/+13 |
| | | |||||
* | | Provide descriptions for all tasks | Fred Hebert | 2015-04-04 | 1 | -1/+1 |
|/ | |||||
* | get rid of compile workers | Tristan Sloughter | 2015-03-12 | 1 | -34/+15 |
| | |||||
* | set jobs for all compile jobs | Tristan Sloughter | 2015-03-12 | 1 | -9/+12 |
| | |||||
* | compile source from the symlinked directories under `_build` to | alisdair sullivan | 2015-03-08 | 1 | -5/+7 |
| | | | | get correct compile paths included in module info | ||||
* | update all examples in providers to use rebar3 | Tristan Sloughter | 2015-03-07 | 1 | -1/+1 |
| | |||||
* | include test dir in symlinks | Tristan Sloughter | 2015-03-01 | 1 | -1/+1 |
| | |||||
* | copy all files from ebin to build output ebin if exists | Tristan Sloughter | 2015-02-28 | 1 | -7/+8 |
| | |||||
* | use relative path on non-windows and copy if link fails | Tristan Sloughter | 2015-02-28 | 1 | -2/+6 |
| | |||||
* | include link to src in outdir for R15 cover/xref | Tristan Sloughter | 2015-02-28 | 1 | -1/+2 |
| | |||||
* | copy project apps to deps output dir for compilation | Tristan Sloughter | 2015-02-28 | 1 | -3/+27 |
| | |||||
* | update project app list with new appinfo records after build | Tristan Sloughter | 2015-02-19 | 1 | -21/+23 |
| | |||||
* | clean up and better error messages when validating apps | Tristan Sloughter | 2015-01-24 | 1 | -2/+7 |
| |