Fred Hebert
f65f506ac2
Bump to alpha
pirms 10 gadiem
Tristan Sloughter
3f5fa807cb
update erlydtl compiler to output to _build, add simple test
pirms 10 gadiem
Fred Hebert
8cfb4df3e0
Fix namespace regressions
This adds some more convolution to command parsing, unfortunately, but
makes some cases clearer (`rebar3 as as as as` is no longer valid). It
unfortunately disallows using $REBAR_PROFILE along with `as` in a rebar
command.
pirms 10 gadiem
Tristan Sloughter
ea82d0561d
update all examples in providers to use rebar3
pirms 10 gadiem
alisdair sullivan
ba79fc0823
parse `rebar3 as foo, bar task` correctly
fixes #238
pirms 10 gadiem
Pierre Fenoll
2d3a0ebe21
Add escriptize provider and a minimal test
pirms 10 gadiem
Tristan Sloughter
d623b39642
fix code path update for deps
pirms 10 gadiem
Tristan Sloughter
0399b0eeb3
add comment about resetting opts
pirms 10 gadiem
Tristan Sloughter
0638c85634
store base opts after initialization of providers
pirms 10 gadiem
Tristan Sloughter
7f508c30a1
apply profiles and overrides for an app's opts to the base opts
pirms 10 gadiem
James Fish
c53dfe0020
Fix handling of ct results
* Return error on failed and/or auto skipped tests
* Print all results for quiet repeated tests
* Sum results of repeated tests
pirms 10 gadiem
James Fish
c7d0c40703
Add debug statements to dialyzer provider
pirms 10 gadiem
James Fish
37850ed819
Shorten default PLT name
pirms 10 gadiem
Tristan Sloughter
1b851267f8
use git or hg configs if exist for default user and email in templates
pirms 10 gadiem
James Fish
53e43298ba
Fix dialyzer active otp release detection
pirms 10 gadiem
James Fish
7f60448d33
Change default project PLT location to base directory
Previously dialyzer stored the project PLT in ./build/, which meant the
same PLT was used for all profiles. This could mean partial rebuilding
of a PLT when switching between profiles.
pirms 10 gadiem
alisdair sullivan
ccfebdd155
switch from loading modules to read compile info to using `beam_lib`
fixes #216 and #220
pirms 10 gadiem
Tristan Sloughter
4a2996a756
fix for profiles_remain_applied_with_config_present
pirms 10 gadiem
James Fish
d6d45258d6
Don't include directories when testing subset of ct suites
pirms 10 gadiem
alisdair sullivan
90bff8f8d4
preserve state when compiling directories with a `rebar.config`
pirms 10 gadiem
alisdair sullivan
1c56941225
fix issue where apps with a `rebar.config` were preventing
rebar state from propogating appropriately
pirms 10 gadiem
alisdair sullivan
945eb364ee
include full path in pointer to `ct` output
pirms 10 gadiem
alisdair sullivan
434c662816
rename `_logs` and `_cover` dirs to `logs` and `cover`, respectively
pirms 10 gadiem
alisdair sullivan
d72812cb5f
name profile directories in `_build` similarly to the arguments
to `as` used to generate them
pirms 10 gadiem
alisdair sullivan
993a9efa58
move `_logs` and `_cover` to `_build` dir
pirms 10 gadiem
James Fish
4ac347c4bf
Do not automatically check plt
pirms 10 gadiem
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
pirms 10 gadiem
Tristan Sloughter
392108000a
use rebar_utils:sh for git and hg commands to have better errors and logs
pirms 10 gadiem
Tristan Sloughter
8ce1de1825
use rebar_file_utils:mv instead of copy for fetched source
pirms 10 gadiem
alisdair sullivan
6c421e5433
change from post-purging modules after checking their module info to
pre-purging before checking to facilitate long do chains
pirms 10 gadiem
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
pirms 10 gadiem
alisdair sullivan
0e606138c5
print warning if cover can't annotate source and skip file
pirms 10 gadiem
alisdair sullivan
eb93bb000a
replace use of `float_to_list/2` for r15x
pirms 10 gadiem
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
pirms 10 gadiem
alisdair sullivan
4a61bae7b3
`as` delegates task handling to `do` provider
pirms 10 gadiem
alisdair sullivan
516a4cef25
exclude beams compiled from source in `test` from the .app file
pirms 10 gadiem
alisdair sullivan
c7c00bccfd
modify `ct` and `eunit` to work with isolated `ebin` dirs
pirms 10 gadiem
alisdair sullivan
12726111bc
`add_to_profile/3` function added to `rebar_state`
pirms 10 gadiem
Tristan Sloughter
80f276e5e5
don't replace non-string list with empty list in profile merge
pirms 10 gadiem
Tristan Sloughter
af0f4bb20a
include test dir in symlinks
pirms 10 gadiem
Tristan Sloughter
0a8ee68042
fix compile/3 call in common_test provider
pirms 10 gadiem
Tristan Sloughter
75f8a772b0
copy all files from ebin to build output ebin if exists
pirms 10 gadiem
Tristan Sloughter
9fc885073b
use same symlink or copy function for deps links
pirms 10 gadiem
Tristan Sloughter
440f0d7524
update compile call from common test provider with new outdir
pirms 10 gadiem
Tristan Sloughter
675044bc83
use relative path on non-windows and copy if link fails
pirms 10 gadiem
Tristan Sloughter
65204ba0ba
include link to src in outdir for R15 cover/xref
pirms 10 gadiem
Tristan Sloughter
a238bc24c6
output proper error message for missing app file
pirms 10 gadiem
Tristan Sloughter
ae9c83fb4b
copy project apps to deps output dir for compilation
pirms 10 gadiem
Tristan Sloughter
d4c2332aab
make base_dir for a run include the profiles in path, link to shared deps
pirms 10 gadiem
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
pirms 10 gadiem