Commit graph

2876 commits

Author SHA1 Message Date
Colin Jones
700e5e84c6 Move back to using a var, since nREPL needs it
refs #955
2013-02-15 16:24:04 -06:00
Colin Jones
dc887efc03 Bump reply version
refs #957
2013-02-15 14:57:00 -06:00
Jean Niklas L'orange
2107a25439 Gracefully handle javac errors. Fixes #994.
When javac runs, it will run in a subprocess. If that subprocess fails,
the entire command should fail. However eval-in command throws an error
as the subprocess returns an exit code not equal to zero. The result is
that we end up with a messy stacktrace even if the javac command
explains why we failed.

This patch handles this by catching an eventual exception, but only if
it's generated by the subprocess. If the subprocess does crash, call
main/exit with the exit code we were given.
2013-02-15 07:18:10 +01:00
Gabriel Horner
4fe565dc50 document global options in help task, close #1005 2013-02-15 00:08:46 -05:00
Anthony Grimes
1579af9264 Rethink :only-deploy-master and generalize it for a set of branches. 2013-02-14 11:31:12 -08:00
Anthony Grimes
d340cb0de5 Add an :only-install-snapshots option that prevents lein install of non-snapshots. 2013-02-14 11:05:29 -08:00
Anthony Grimes
0d4fd58b14 Add :only-deploy-master option to prevent deploys from non-master branches. 2013-02-13 17:31:43 -08:00
Anthony Grimes
cd87788400 Add never-deploy-snapshots option. 2013-02-13 16:27:01 -08:00
Michael Klishin
62ae78236e Merge pull request #1002 from cldwalker/upgrade-bultitude
upgrade to bultitude 0.2.1 to stop relying on bultitude private fn
2013-02-12 18:08:44 -08:00
Gabriel Horner
07527a4c3d upgrade to bultitude 0.2.1 to stop relying on bultitude private fns
use new ns-form-for-file instead
2013-02-12 20:08:22 -05:00
Phil Hagelberg
9960b16a18 Re-enable :skip-aot. 2013-02-12 09:54:26 -08:00
Phil Hagelberg
af7d5aaffd Improve boot time by limiting tiered compilation. 2013-02-12 09:54:25 -08:00
Michael Klishin
561e6535ee Merge pull request #1001 from cldwalker/test-doc-tweak
add doc for #1000, mention :all for tests
2013-02-11 21:43:16 -08:00
Gabriel Horner
d11089c77b add doc for #1000, mention :all for tests 2013-02-12 00:33:59 -05:00
Phil Hagelberg
176bab653a Merge pull request #1000 from cldwalker/test-command-takes-files
Test command takes file arguments
2013-02-11 20:39:11 -08:00
Gabriel Horner
efb62f7f84 remove failing report test that is no longer valid
removed at dfb951f430
2013-02-11 22:30:20 -05:00
Gabriel Horner
5cc3aa874b allow lein test to take file args
closes #996
2013-02-11 22:16:22 -05:00
Gabriel Horner
2e349c61e3 test for test command aborting on invalid namespace
move abort-msg to helper and ensure it only catches main/abort
2013-02-11 22:16:22 -05:00
Gabriel Horner
d5ec46e871 add missing tests for common test command invocations 2013-02-11 22:16:22 -05:00
Michael Klishin
6a7857a80d Merge pull request #999 from trevor/master
update links to docs rc->stable
2013-02-11 18:52:27 -08:00
Trevor Wennblom
8aed31b3e6 update links to docs rc->stable 2013-02-11 19:19:20 -06:00
Phil Hagelberg
26fee30387 Add Sonatype OSS snapshots repo for pomegratate. 2013-02-11 14:39:22 -08:00
Anthony Grimes
dfb951f430 Remove report to get rid of redundant information. 2013-02-11 13:26:47 -08:00
Anthony Grimes
d2f49ca6d1 Merge branch 'master' of github.com:technomancy/leiningen into printonly 2013-02-11 13:21:53 -08:00
Phil Hagelberg
c28d6997ee Allow :classifiers to point to top-level profile names.
Fix classifier docstrings in jar.clj.
2013-02-10 22:40:56 -08:00
Hugo Duncan
c418aee68b Allow building of jars with classifiers
Adds a :classifiers project key that takes a map from classifier keyword to
profile map.

    :classifiers {:tests {:source-paths ^:replace ["test"]
                          :resource-paths ^:replace []}}
2013-02-10 22:14:52 -08:00
Phil Hagelberg
cb71b5a071 Merge pull request #991 from hugoduncan/feature/simplify-deploy
Simplify deploy by moving coordinate merging into aether
2013-02-10 22:13:54 -08:00
Phil Hagelberg
2597ad0509 Formatting in repl.clj. 2013-02-10 21:53:00 -08:00
Phil Hagelberg
6d7a77d547 Update tests to remove :custom-init. 2013-02-10 21:52:08 -08:00
Phil Hagelberg
b428715b08 Replace with-local-vars with a gensym. 2013-02-10 21:45:13 -08:00
Phil Hagelberg
bfccbfc00a Don't require set-descriptor! in lein; only used inside project. 2013-02-10 21:45:13 -08:00
Marko Topolnik
4c5185f33a Remove obsoleted tests 2013-02-10 21:45:13 -08:00
Marko Topolnik
1c1a2c2b95 Raise reply version to 0.1.10-SNAPSHOT 2013-02-10 21:45:13 -08:00
Marko Topolnik
ccbccd65f4 Add middleware to set init-ns in nrepl session 2013-02-10 21:45:13 -08:00
Marko Topolnik
fb179d4da9 defn init-ns 2013-02-10 21:45:13 -08:00
Marko Topolnik
b4216b1dde Remove def leiningen.repl.config/project-map 2013-02-10 21:45:12 -08:00
Marko Topolnik
2d120ac925 Adapt repl tests 2013-02-10 21:45:12 -08:00
Marko Topolnik
1df326b1c7 Try to start repl even if some requires fail 2013-02-10 21:45:12 -08:00
Marko Topolnik
3a5a58c12a Longer repl connect timeout 2013-02-10 21:45:12 -08:00
Marko Topolnik
90b471134c def leiningen.repl.config/project-map for nrepl clients 2013-02-10 21:45:12 -08:00
Marko Topolnik
a7e0e2f78a require init-ns unconditionally 2013-02-10 21:45:12 -08:00
Marko Topolnik
930429c519 Perform init unconditionally 2013-02-10 21:45:12 -08:00
Michael Klishin
77e29f81b6 Merge pull request #995 from cldwalker/test-command-docs
document ns tagging and :only features of test subcommand
2013-02-09 16:42:04 -08:00
Gabriel Horner
d94f0a0534 update test subcommand doc to have a realistic example 2013-02-09 14:52:50 -05:00
Gabriel Horner
2747df724a document ns tagging and :only features of test subcommand 2013-02-09 12:02:03 -05:00
Hugo Duncan
551479fc5a Fix stack overflow on with-profile self-aliases
An alias such as {"doc" ["with-profile" "+doc" "doc"]} was leading to a stack
overflow when executed.

This was due to the project being reload when with-profile calls set-profiles,
thus re-instating the aliases that have been removed by remove-alias.
2013-02-08 22:56:42 -05:00
Jean Niklas L'orange
147dfbc3da Add tests for prioritized repos. 2013-02-08 21:04:58 +01:00
Jean Niklas L'orange
120c54ab3c Pick prioritized value in add-repo if there is one 2013-02-08 21:04:23 +01:00
Jean Niklas L'orange
cd52531897 Move prioritized picks out of meta-merge. 2013-02-08 21:03:29 +01:00
Hugo Duncan
cc335da313 Simplify deploy
This takes advantage of the coordinate merging in pomegranate.aether/deploy.
2013-02-08 11:10:01 -05:00