alisdair sullivan
d72812cb5f
name profile directories in `_build` similarly to the arguments
to `as` used to generate them
10 anni fa
alisdair sullivan
993a9efa58
move `_logs` and `_cover` to `_build` dir
10 anni fa
James Fish
4ac347c4bf
Do not automatically check plt
10 anni fa
Fred Hebert
3ef3a7abec
Fix hg diffing
- fetch more complete refs for tags (may download more history than
required, but it works)
- Fix comparison of tag distance by using lists everywhere
10 anni fa
Tristan Sloughter
392108000a
use rebar_utils:sh for git and hg commands to have better errors and logs
10 anni fa
Tristan Sloughter
8ce1de1825
use rebar_file_utils:mv instead of copy for fetched source
10 anni fa
alisdair sullivan
6c421e5433
change from post-purging modules after checking their module info to
pre-purging before checking to facilitate long do chains
10 anni fa
alisdair sullivan
af7ba345fa
erlang r15x (and possibly earlier) don't put the correct path to
source files in the `compile` key of `module_info/1` so `rebar cover`
struggles locating source in some instances. in these cases a warning
is printed and crappy coverage info is written rather than none at all
10 anni fa
alisdair sullivan
0e606138c5
print warning if cover can't annotate source and skip file
10 anni fa
alisdair sullivan
eb93bb000a
replace use of `float_to_list/2` for r15x
10 anni fa
alisdair sullivan
ad8982b931
generate cover data (via the `{cover_enabled, true}` option in
`rebar.config` or via the `-c\--cover` flag given to the appropriate
task) from the `eunit` and `ct` tasks and add a `cover` task to
write coverage analysis to disk
10 anni fa
alisdair sullivan
4a61bae7b3
`as` delegates task handling to `do` provider
10 anni fa
alisdair sullivan
516a4cef25
exclude beams compiled from source in `test` from the .app file
10 anni fa
alisdair sullivan
c7c00bccfd
modify `ct` and `eunit` to work with isolated `ebin` dirs
10 anni fa
alisdair sullivan
12726111bc
`add_to_profile/3` function added to `rebar_state`
10 anni fa
Tristan Sloughter
80f276e5e5
don't replace non-string list with empty list in profile merge
10 anni fa
Tristan Sloughter
af0f4bb20a
include test dir in symlinks
10 anni fa
Tristan Sloughter
0a8ee68042
fix compile/3 call in common_test provider
10 anni fa
Tristan Sloughter
75f8a772b0
copy all files from ebin to build output ebin if exists
10 anni fa
Tristan Sloughter
9fc885073b
use same symlink or copy function for deps links
10 anni fa
Tristan Sloughter
440f0d7524
update compile call from common test provider with new outdir
10 anni fa
Tristan Sloughter
675044bc83
use relative path on non-windows and copy if link fails
10 anni fa
Tristan Sloughter
65204ba0ba
include link to src in outdir for R15 cover/xref
10 anni fa
Tristan Sloughter
a238bc24c6
output proper error message for missing app file
10 anni fa
Tristan Sloughter
ae9c83fb4b
copy project apps to deps output dir for compilation
10 anni fa
Tristan Sloughter
d4c2332aab
make base_dir for a run include the profiles in path, link to shared deps
10 anni fa
alisdair sullivan
05c9bf6bbb
reset state between tasks run with `do` so `rebar do foo, bar, baz`
has the same outcome as `rebar3 foo && rebar3 bar && rebar3 baz`
fixes #191
10 anni fa
Tristan Sloughter
4eaeca8890
add edoc provider
10 anni fa
Fred Hebert
a8ceafbf4c
Port env var expension fix from rebar2
See https://github.com/rebar/rebar/pull/458
10 anni fa
Tristan Sloughter
dcd8962afb
remove old info function from install_deps, it is a bare provider
10 anni fa
Fred Hebert
e8b2c274e9
Fix crash on non-git source deps in deps provider
The 'element(1, ..)' guard would always fail and cause crashes.
10 anni fa
Fred Hebert
6fa030d94c
Support mercurial (hg) dependencies
10 anni fa
Tristan Sloughter
235436a410
profiles: combine lists of values for conflicting config options
10 anni fa
Fred Hebert
1a132f6c36
We can use 3.0.0 when we're done.
10 anni fa
Fred Hebert
6ccef53891
Revert accidental commited debug code
10 anni fa
Fred Hebert
c283dd2c69
Add tests and fixes for packages upgrades
- Track level of packages properly, they're not level 0 anymore (this
could yield an issue where a src dep takes precedence over a pkg dep)
- Proper stable sort of vertices in the digraph module
- PkgDeps no longer 'see themselves' when fetching and upgrading after
locking themselves
- Pkg Locks are added to pkg deps rather than source deps
- Updating test cases to support pkg mocking on top of src mocking
10 anni fa
Fred Hebert
249be4985c
Reuse test code and drop duplicated stuff
10 anni fa
Fred Hebert
d6dc56da03
Fix lock merging for nonexistant lock files.
10 anni fa
Tristan Sloughter
0c402a8293
output hook stdout and don't add extra newline
10 anni fa
alisdair sullivan
521a49dd26
don't unescessarily recompile yrl/xrl files
fixes #175
10 anni fa
alisdair sullivan
04235f1a63
don't attempt to merge locks when there are no dependencies
fixes #172
10 anni fa
Tristan Sloughter
c3e2ab1c1e
remove unneeded get_modules_list function
10 anni fa
Tristan Sloughter
8f03afded4
consolidate app validation and exist checks
10 anni fa
Tristan Sloughter
633dafafc3
release and tar tests
10 anni fa
Fred Hebert
81f47c44ec
Reindent multiline assignment
10 anni fa
Fred Hebert
d4d4e27693
Pass in newer state reference
Old one might have been a mistake; this one works fine.
10 anni fa
Fred Hebert
1c638b05fa
Refactor install deps
- Make functions shorter
- Unnest some functions
- Split up and give names to major conditional branches
10 anni fa
Tristan Sloughter
62ff6718fd
update project app list with new appinfo records after build
10 anni fa
Tristan Sloughter
e73ed97cfd
follow xdg standard. fixes #122
10 anni fa
Tristan Sloughter
02e33a265b
check for newly added deps in config file that aren't level 0 in the lock
10 anni fa