summaryrefslogtreecommitdiff
path: root/test/rebar_dir_SUITE.erl
Commit message (Collapse)AuthorAgeFilesLines
* Prevent copying or symlink non-existing src_dirsFred Hebert2018-04-271-3/+0
| | | | | | | | | | This would cause crashes on linux and force people to have a src_dirs config that is strictly matching what is on the file system rather than acting as a specification of those that are valid. To compare, if lib_dirs worked the same, then any repo that did not both have apps/ and lib/ would crash, as the spec mentions both options as valid.
* Merge branch 'feature_long_src_paths' of https://github.com/danikp/rebar3 ↵Fred Hebert2018-04-271-2/+22
|\ | | | | | | into danikp-feature_long_src_paths
| * fix & testDmitry2018-04-231-2/+22
| |
* | Clear all dialyzer errorsFred Hebert2018-04-231-1/+11
|/ | | | | - this is done by adding a HiPE dependency - also in this: adding a test for directories, and fixing some indent
* Corrects a fix to src_dir valuesFred Hebert2017-09-271-2/+3
| | | | | | | | | | The previous patch at #7c959cc fixed the usage of duplicate values for directories through relative paths, but mistakenly went overboard and dropped the `./` path, which is still fairly common. Similarly for `../". The code is modified to special-case such values and keep the code working.
* Fix relative src dir specificationsFred Hebert2017-08-301-1/+1
| | | | | | | | When fetching src_dir values, some relative paths can be inserted. When deduplicating the paths on the fetch, this fact means that logically duplicate (but literally different) directories can be returned at once. By normalizing the names, duplication bugs can be resolved.
* Add 'recursive' optionSiri Hansen2016-11-211-3/+63
| | | | | | | | | | | | 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.
* Read env var REBAR_CACHE_DIR on rebar3 only onceFrancisco Rojas2016-04-061-1/+1
| | | | | Instead of reading every time that rebar_dir:global_cache_dir/1 is called
* use priv_dir in rebar_dir testFrancisco Rojas2016-03-171-2/+2
|
* Allows overwrite default cache dir using REBAR_CACHE_DIRFrancisco Rojas2016-03-151-2/+34
| | | | | Allows overwrite the default cache directory using the environment variable REBAR_CACHE_DIR.
* Add tests for base_dir reconfigurationFred Hebert2015-12-191-3/+40
| | | | Tests both absolutes and relative paths.
* dedup `src_dirs` and `extra_src_dirs` on readalisdair sullivan2015-10-301-6/+6
|
* extract `retarget_path/2', `relative_path/2' and `reduce_path/1' andalisdair sullivan2015-09-131-5/+33
| | | | add tests
* wip: move state into app_infoTristan Sloughter2015-08-311-21/+21
|
* methods for retrieving `src_dirs` and `extra_src_dirs`alisdair sullivan2015-05-191-0/+99
note that now ALL `src_dirs` across included profiles are compiled. previously only the last included profile's `src_dirs` were used