Dave Smith
1826e62069
Copy all source files for eunit to .eunit directory so that cover works properly (ick!)
2010-05-03 09:45:21 -06:00
Tuncer Ayaz
914e5fbf68
New commands and opts (-V/--version/version/help)
2010-05-03 11:38:27 +02:00
Tuncer Ayaz
c319662849
Correct comment
2010-05-03 04:15:16 +02:00
Tuncer Ayaz
56b801b2c9
Add new erl_opts option to specify platform-specific defines
2010-05-03 04:03:38 +02:00
Tuncer Ayaz
60c649bc4e
Add missing CXXFLAGS equivalents of CFLAGS
2010-04-29 15:34:14 +02:00
Cliff Moon
939c36e527
merged from basho
2010-04-28 19:37:46 -07:00
Cliff Moon
c3fe43a0ba
add new configuration option so_specs which allows multiple drivers to be built in the same project.
2010-04-28 16:27:54 -07:00
Dave Smith
c28a16258c
Add caching of app file
2010-04-28 13:02:51 -06:00
Dave Smith
f81cf34bb9
Add default CFLAGS for platforms where there can be variation of 32/64 bit Erlang VMs
2010-04-28 09:31:38 -06:00
Dave Smith
c19b8ac003
Refactoring app file access to be via rebar_app_utils in prep for supporting .app.src
2010-04-28 08:44:06 -06:00
Jeremy Raymond
87bca27644
Copy src files to .eunit so that cover can always find them
2010-04-22 22:35:16 -04:00
Dave Smith
dbfd2a08cd
Merging w/ mainline
2010-04-23 10:10:11 -06:00
Dave Smith
0add7acdbf
Make sure to add ebin/ to the code path as well so that xref can properly determine source/line of code.
2010-04-23 09:27:50 -06:00
Tuncer Ayaz
99bf0f3918
Reuse rebar_utils:get_cwd/0
2010-04-21 21:36:47 +02:00
Dave Smith
8f85d70897
Verify that we work with minimal git of 1.5
2010-04-19 08:06:07 -06:00
Dave Smith
29a3d7267c
Merging w/ mainline
2010-04-17 07:35:40 -06:00
Dave Smith
266d82f871
Add simple warning if no modules are interested in handling a command for a given directory
2010-04-17 07:34:54 -06:00
Dave Smith
66906bc39e
Make sure to add .eunit as an absolute directory so that we avoid weirdness with code loading stuffs.
2010-04-16 12:58:10 -06:00
Tuncer Ayaz
1e8916ba87
Document xref command
...
Also add a sleep after printing so that the io server has
written all output before exiting. It's a work around.
2010-04-15 20:20:20 +02:00
Dave Smith
aea6f66939
Tested mercurial checkout down to 1.1
2010-04-14 12:51:52 -06:00
Dave Smith
7218213d1c
Support older, more deployed version of mercurial
2010-04-14 10:39:46 -06:00
Dave Smith
ab817cd020
Merging w/ mainline
2010-04-09 09:26:04 -06:00
Dave Smith
fcf4507a80
Add stub for xref support; not yet done
2010-04-09 09:25:00 -06:00
Bryan Fink
4f470fcddd
clean up .yrl and .xrl handling
2010-03-31 15:21:13 -04:00
Bryan Fink
e6e36834f9
add leex .xrl handling as well
2010-03-31 15:03:29 -04:00
Bryan Fink
cf820007fc
add handling for yecc's .yrl files to erlc compiler
2010-03-31 11:35:06 -04:00
Tuncer Ayaz
0f494c2a14
Add check-deps to shell completion and commands info
2010-03-26 19:28:01 +01:00
Dave Smith
84f5108e17
Adding check-deps and helper target for compilation
2010-03-25 13:34:19 -06:00
Tuncer Ayaz
5f98b6b65a
Add ASN.1 support (via Ruslan Babayev)
...
Add support for compiling ASN.1 files with asn1ct.
Patch from Ruslan Babayev.
2010-03-22 18:31:01 +01:00
Tuncer Ayaz
3dfc7a8486
Add get-deps and delete-deps to commands info and shell completion
...
Add get-deps and delete-deps to commands info string and
bash completion script.
2010-03-17 01:26:32 +01:00
Dave Smith
c71ec1d68f
Merging w/ mainline
2010-03-16 13:30:52 -06:00
Dave Smith
be6bb20c59
Revamp deps system to NOT pull down deps automatically. You must now use pull-deps explicitly
2010-03-16 13:30:22 -06:00
Dave Smith
a12778ba65
Removing overly verbose debug message (yes, I realize the irony)
2010-03-16 13:29:49 -06:00
Tuncer Ayaz
faf21694fe
Make sure zip module is loaded
...
Before we check for zip:foldl/3 make sure zip module is loaded.
2010-03-11 01:27:46 +01:00
Tuncer Ayaz
ebfb1dc40d
Add option to show available commands
...
Implement new option -c/--commands to print available
commands and its variables.
2010-03-08 21:14:06 +01:00
Tuncer Ayaz
aeabfb6fe9
Add escript_foldl/3 TODO
...
Comment what has to be done when the new OTP release is out
and the time is right.
2010-03-06 00:04:50 +01:00
Tuncer Ayaz
dfb5af4049
Add forward-compatible escript_foldl function
...
escript:foldl/3 was undocumented and has been replaced with
better APIs post-R13B04. The new exported funs are officially
documented.
2010-03-05 22:56:31 +01:00
Dave Smith
a49d257412
Merging eunit fixes + some UNIT TESTS!! from cebernard
2010-03-05 13:27:45 -07:00
Dave Smith
95227cf6ef
Merging changes from vagabond
2010-03-05 10:25:47 -07:00
David Reid
a29da71aac
Support for downloading deps via bzr.
2010-03-05 00:06:39 -08:00
David Reid
92a5a326d5
Support downloading deps via SVN.
2010-03-04 23:50:57 -08:00
Chris Bernard
25538e071f
Fixed 3 bugs in rebar_eunit. Added EUnit tests to capture them.
...
1. When running the eunit command with the convention of putting
tests in "*_tests" modules, eunit would run those tests twice. This
is because: 1) eunit:test/1 will naturally look for foo's tests both
in foo, and in foo_tests, and 2) eunit:test/1 was being folded over
all project modules. The fix is to filter "*_tests" modules from the
list passed to eunit:test/1.
2. When running the eunit command with cover enabled and tests in a
'test' directory, cover would error because it couldn't find the
source code for those tests. This is because cover:analyze/3 will
only find module source in "." and "../src". This is hard-coded in
cover :-(. Since cover shouldn't be calculating code coverage on test
code anyway, the fix is to not fold cover:analyze/3 over
non-production code.
3. When running the eunit command with cover enabled and a test suite
defined, cover would only attempt to calculate coverage on the the
test suite itself. This was because only the suite was passed to
cover:analyze/3. The fix is to fold cover:analyze/3 over all the
production code, filtering out the suite module if it is defined.
2010-03-04 20:53:12 -05:00
Vagabond
50832a1a14
Don't detect the source file as an include of itself
2010-03-02 18:04:08 -05:00
Vagabond
a3f8489340
Move the .erl sorting to the right place
2010-03-02 17:58:05 -05:00
Vagabond
c4d3f0ea65
Fix dependancy checking for headers by ensuring "include" is always in the eep IncludePath
2010-03-02 17:34:12 -05:00
Vagabond
4ce01860e9
Compile parse transform and custom behaviours first
2010-03-02 17:13:58 -05:00
Tuncer Ayaz
23781ae460
Fix unused var warning
2010-02-25 19:57:02 +01:00
theiw
8a3ad89f7c
Refactor eunit and cover
2010-02-19 22:37:48 +00:00
Dave Smith
872076be3f
Adding cleaner module to permit users to specify their own set of files to delete
2010-02-21 05:39:12 -07:00
Dave Smith
28d3b75641
Fix bug in templater where escript was not found in subdirs were specified in rebar.config; minor formatting cleanups
2010-02-20 20:15:07 -07:00