Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use proper skips in compiler tests that use unavailable functions | alisdair sullivan | 2017-02-05 | 1 | -17/+29 |
| | |||||
* | Make test work on all OTPs | Fred Hebert | 2017-01-29 | 1 | -1/+4 |
| | |||||
* | Add regression for #1410 | Fred Hebert | 2017-01-29 | 1 | -1/+33 |
| | |||||
* | comment `ERL_COMPILER_OPTIONS` tests | alisdair sullivan | 2017-01-28 | 1 | -0/+9 |
| | |||||
* | consider `ERL_COMPILER_OPTIONS` when recompiling | alisdair sullivan | 2017-01-28 | 1 | -5/+93 |
| | | | | | | 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 | ||||
* | Add 'recursive' option | Siri Hansen | 2016-11-21 | 1 | -2/+40 |
| | | | | | | | | | | | | The option {recursive,boolean()} can now be set pr directory in 'src_dirs' and 'extra_src_dirs', and on top level in the new 'erlc_compiler' option. Example config: {erlc_compiler,[{recursive,false}]}. {src_dirs,[{"src",[{recursive,true}]}]}. This will cause recursive compilation within the "src" directory, but not in any other directoires. | ||||
* | Fix private includes when compiling in test profile | Fred Hebert | 2016-09-30 | 1 | -1/+70 |
| | | | | | | | | | | | | | | 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. | ||||
* | recompile all files when a parse transform given as an opt needs updating | alisdair sullivan | 2016-09-20 | 1 | -2/+103 |
| | | | | | | | | | 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 | ||||
* | normalize include dirs to absolute paths during compilation | alisdair sullivan | 2016-06-12 | 1 | -3/+42 |
| | | | | | | | | changed include files were not properly picked up by `erlc_compiler` in cases where they were in directories relative to the application source and not the current working dir of rebar3 fixes #1199 | ||||
* | REBAR-1184 exclude tests for `ERL_COMPILER_OPTIONS` on r15 | alisdair sullivan | 2016-06-11 | 1 | -2/+5 |
| | |||||
* | REBAR-1184 always recompile if `ERL_COMPILER_OPTIONS` env var is set | alisdair sullivan | 2016-06-11 | 1 | -2/+45 |
| | | | | partially addresses #1184 | ||||
* | Add module directory to include path | Luis Rascao | 2016-01-26 | 1 | -2/+64 |
| | | | | | | | | | | Several projects use an include path relative to the project's root. file:compile will look in three places for the include files: The current working directory The directory where the module is being compiled The directories given by the include option | ||||
* | only apply default and prod profile to dependencies | Tristan Sloughter | 2016-01-09 | 1 | -5/+35 |
| | |||||
* | remove mib header file in `priv/mibs/include' | alisdair sullivan | 2015-12-08 | 1 | -6/+0 |
| | |||||
* | symlink mib hrl output in apps `include' directories | alisdair sullivan | 2015-12-06 | 1 | -0/+6 |
| | | | | this restores compatibility with rebar2 and erlang.mk | ||||
* | Added tests and fixed a bug | Phil Toland | 2015-12-01 | 1 | -4/+10 |
| | |||||
* | refactor `rebar_erlc_compiler` | alisdair sullivan | 2015-10-26 | 1 | -73/+560 |
| | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Revert "add an export to allow specifing arbitrary extra erl files to be ↵ | alisdair sullivan | 2015-10-26 | 1 | -30/+1 |
| | | | | | | compiled" This reverts commit 9d82215296205d2d30c152c7d7c6fcb8e4a92443. | ||||
* | Support proper paths in non-erl first files | Fred Hebert | 2015-10-12 | 1 | -2/+51 |
| | | | | | This passes the directory to the option to ensure it works with more than configs at the root of the project. | ||||
* | add an export to allow specifing arbitrary extra erl files to be compiled | alisdair sullivan | 2015-09-21 | 1 | -2/+31 |
| | | | | to `rebar_erlc_compiler` | ||||
* | override 'deps' now automatically overrides '{deps,default}' | Tristan Sloughter | 2015-08-23 | 1 | -2/+42 |
| | |||||
* | Add tests for mixed deps installs | Fred Hebert | 2015-08-16 | 1 | -1/+2 |
| | | | | | Requires a rework of other test suites using the same dep-handling mechanism. | ||||
* | add test for clean --all | Tristan Sloughter | 2015-07-28 | 1 | -2/+36 |
| | |||||
* | do not install profile deps of deps | Tristan Sloughter | 2015-07-18 | 1 | -2/+27 |
| | |||||
* | only look for top level apps and those directly under apps/ or lib/ | Tristan Sloughter | 2015-07-16 | 1 | -4/+4 |
| | |||||
* | ensure necessary directories exist to compile mibs files | Tristan Sloughter | 2015-07-06 | 1 | -3/+49 |
| | |||||
* | Fixed two tests for windows 8.1 and added touch functionality | Daniel Widgren | 2015-06-26 | 1 | -3/+5 |
| | |||||
* | Adding erl_first_files test | Fred Hebert | 2015-06-26 | 1 | -2/+44 |
| | | | | | | The test works by using a parse transform that stamps modules with an attribute as it runs them. It then compiles everything, loads the module, and makes sure the stamps respect the defined order. | ||||
* | plugins provider | Tristan Sloughter | 2015-06-18 | 1 | -132/+1 |
| | |||||
* | store plugin providers in app_info's state for deps | Tristan Sloughter | 2015-05-28 | 1 | -17/+13 |
| | |||||
* | add test for plugin with transitive deps | Tristan Sloughter | 2015-05-27 | 1 | -1/+52 |
| | |||||
* | install plugins from the global config to ~/.cache/plugins | Tristan Sloughter | 2015-05-17 | 1 | -2/+55 |
| | |||||
* | enable parse transformations in rebar config | Tristan Sloughter | 2015-04-26 | 1 | -2/+25 |
| | |||||
* | track and cleanup code paths for different contexts | Tristan Sloughter | 2015-04-21 | 1 | -5/+8 |
| | |||||
* | add test for single atom pkg dep picking the highest available | Tristan Sloughter | 2015-04-11 | 1 | -2/+28 |
| | |||||
* | rm old beams, make erlcinfo graph per app isntad of global to project | Tristan Sloughter | 2015-04-10 | 1 | -2/+21 |
| | |||||
* | test touching a header file causes module recompiled | Tristan Sloughter | 2015-04-10 | 1 | -2/+39 |
| | |||||
* | test building of deps plugins | Tristan Sloughter | 2015-04-04 | 1 | -2/+34 |
| | |||||
* | treat _checkouts as deps that are always compiled | Tristan Sloughter | 2015-03-21 | 1 | -3/+124 |
| | |||||
* | compile source from the symlinked directories under `_build` to | alisdair sullivan | 2015-03-08 | 1 | -0/+27 |
| | | | | get correct compile paths included in module info | ||||
* | switch from loading modules to read compile info to using `beam_lib` | alisdair sullivan | 2015-03-05 | 1 | -12/+2 |
| | | | | fixes #216 and #220 | ||||
* | change from post-purging modules after checking their module info to | alisdair sullivan | 2015-03-03 | 1 | -2/+13 |
| | | | | pre-purging before checking to facilitate long do chains | ||||
* | copy project apps to deps output dir for compilation | Tristan Sloughter | 2015-02-28 | 1 | -7/+7 |
| | |||||
* | don't unescessarily recompile yrl/xrl files | alisdair sullivan | 2015-02-22 | 1 | -2/+43 |
| | | | | fixes #175 | ||||
* | check already compiled modules compile arguments against current compile | alisdair sullivan | 2015-02-16 | 1 | -2/+56 |
| | | | | arguments to ensure compile results as as intended | ||||
* | MORE TESTS | Fred Hebert | 2014-12-29 | 1 | -2/+23 |
| | |||||
* | Adding tests for checkouts being found & compiled | Fred Hebert | 2014-12-29 | 1 | -4/+21 |
| | |||||
* | Add release-structured compiling tests | Fred Hebert | 2014-12-24 | 1 | -2/+17 |
| | |||||
* | Fix up programmatic interface to rebar3 | Fred Hebert | 2014-12-21 | 1 | -1/+1 |
| | | | | Now supports arbitrary commands | ||||
* | Partial fix to circular deps (#40) | Fred Hebert | 2014-12-06 | 1 | -1/+1 |
| | | | | | | | | | - Adding tests - fixing use of set fetching to find repeated deps and prevent infinite loops On a circular loop rebar3 now fails with `{error, no_sort}`, which is uncaught and should be handled to consider the issue fully fixed. |