Commit graph

266 commits

Author SHA1 Message Date
Joshua P. Tilles
437e63daab Adjust compile task to make use of regex fns
Also update documentation.
2013-03-19 16:12:08 -07:00
Phil Hagelberg
ededa95c2d Merge remote-tracking branch 'marcliberatore/natives-update-java-library-path' 2013-03-19 14:25:48 -07:00
Marc Liberatore
d9e943e519 fix error in test introduced in 43581e2 2013-03-19 16:07:06 -04:00
Phil Hagelberg
4f4e66e01b Tag tests which require network access. 2013-03-19 10:24:56 -07:00
Phil Hagelberg
b8a6a090fe Remove outdated link to GitHub downloads page. 2013-03-19 10:24:56 -07:00
Tim McCormack
d14f5149f1 #949 Allow specification of artifact signing key.
Add :signing {:gpg-key "..."} option to project maps (global value)
and to :deploy-repositories maps (per-repo value). Does not yet work
in :repositories specs.

Also:
* Document per-repo :sign-releases option
* Delete unused defn deploy/signature-for
2013-03-19 10:24:56 -07:00
Phil Hagelberg
0e132292b7 Merge remote-tracking branch 'hyPiRion/read-nonblocking'
Conflicts:
	src/leiningen/deploy.clj
2013-03-17 08:05:11 -07:00
Jean Niklas L'orange
e42e44911d Add expected :input-stream in repl test. 2013-03-16 23:47:31 +01:00
Phil Hagelberg
41df82ba5c Fix repl test. 2013-03-14 21:15:26 -07:00
Colin Jones
50dd466255 Specify :root in repl test so the stub works 2013-03-14 10:47:28 -05:00
Michael Klishin
1e32278061 Add tests for #1017 2013-02-23 23:09:51 +04:00
Gabriel Horner
3c8b95d5b6 add resources dir to default new template, close #1016 2013-02-21 22:07:41 -05:00
Phil Hagelberg
52ae933cfa Fix tests to no longer look for shouty output prefix. 2013-02-21 13:35:21 -08:00
Phil Hagelberg
3b3573b47b Revert "Logging warnings to stderr and editing for consistency"
This reverts commit 4f05a44a0e.

Conflicts:
	leiningen-core/src/leiningen/core/project.clj
	src/leiningen/deploy.clj
	src/leiningen/test.clj
	src/leiningen/with_profile.clj
2013-02-21 13:29:48 -08:00
Phil Hagelberg
cc4045b932 Merge remote-tracking branch 'hugoduncan/feature/fix-recursive-alias-993'
Conflicts:
	leiningen-core/test/leiningen/core/test/project.clj
2013-02-21 12:04:19 -08:00
Gabriel Horner
2a9b50de5b fix tests broken by change in error format 2013-02-19 08:12:13 -05:00
Jean Niklas L'orange
6aed6d377f Resolve failing test introduced by *warn*.
Also move abort-msg up to leiningen core and call it from the leiningen
test helpers package instead.
2013-02-18 00:07:53 +01:00
Jean Niklas L'orange
55dd6b3fd4 Replace main ns with log where forgotten. 2013-02-17 23:39:40 +01:00
Gabriel Horner
c395092d8f new task generates in current directory by default, close #989 2013-02-15 16:15:56 -08:00
Gabriel Horner
95eeba2f1a add new task tests for other templates, fail case and :show 2013-02-15 16:15:55 -08:00
Gabriel Horner
0e025421d6 documenting and testing --to-dir option for new task 2013-02-15 16:15:55 -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
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
6d7a77d547 Update tests to remove :custom-init. 2013-02-10 21:52:08 -08:00
Marko Topolnik
4c5185f33a Remove obsoleted tests 2013-02-10 21:45:13 -08:00
Marko Topolnik
2d120ac925 Adapt repl tests 2013-02-10 21:45:12 -08: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
Gabriel Horner
f477ffa7da add tests for helpful renderer msgs, handle no args case 2013-01-30 06:31:14 -05:00
Tim McCormack
45a5901d69 Remove some unnecessary regular expressions from the templates util ns.
Also:

* Add tests for string-munging fns
* Correct doc for name-to-path
2013-01-18 22:09:17 -05:00
Phil Hagelberg
54806fa5bc Fix newnew test 2013-01-10 16:45:09 -08:00
Phil Hagelberg
96adcdccc5 Fix tests re: central snapshots. 2013-01-10 11:40:15 -08:00
Ryan Senior
f4c2b97bc6 changed leiningen/test to allow the call into the clojure.test report to
pass through the hook to  the original multimethod
2013-01-10 11:07:01 -06:00
Jean Niklas L'orange
6280b73da0 Enforce nREPL dependencies in :repl profile. Fixes #893.
Enforces a nREPL dependency and a clojure-complete dependency for the :repl
profile. Previously, the first found :repl profile from
`project.clj`-`profiles.clj`-default was returned and merged into the real
profile. Now all :repl profiles that are found are merged into the active
profile.

The dependencies are tagged with the ^:displace tag, and as such will be
discarded if a collision occurs.

The changes made `repl-profile-in-project` fail as it did not contain
`leiningen.core.project/empty-dependencies`, which has a :reduce tag in its
metadata for handling dependency merging. The dependency merger expands the
version to its url, hence the change to a url map.

Also removed a TODO from the file, fixed by 27fe39d.
2012-12-28 04:56:27 +01:00
Phil Hagelberg
f92f677eb7 Disable a test that requires Java 7. 2012-12-26 10:12:03 -08:00
Phil Hagelberg
b4cc0f9dba Rename :post-preview selector to :disabled. 2012-12-26 10:07:51 -08:00
Balint Erdi
e7295dcb8a Update tests to the new way of defining replacing repositories 2012-12-04 15:58:56 +01:00
Marshall T. Vandegrift
24ca286d54 Test :provided profile interpretation by the uberjar task. 2012-11-17 17:38:11 -05:00
Phil Hagelberg
624bf2ae88 Move AOT of :main into uberjar task. Remove :skip-aot. 2012-11-12 15:30:43 -08:00
Anthony Grimes
43a5af1356 Add a test for :only selector. 2012-10-20 18:03:16 -05:00
Justin Balthrop
9f37f53c5e move dependency and repository merging into meta-merge
This is accomplished with the :reduce metadata, which specifies the
reduce function to use when merging. This allows us to merge
dependencies and repositories deeply like other structures. Note that
dependencies are transformed into a map before they are merged and then
transformed back into a vector.

Also change the way that collections are merged. They used to be merged
by taking the right collection and prepending it to the left collection.
This behavior was needed for :*-paths in defproject, but it is not an
obvious default. Now, the default is to append the right collection, but
the :prepend metadata can be used to tell meta-merge to prepend instead.
By default, :source-paths, :resource-paths and :test-paths have :prepend
set to true.
2012-10-08 18:27:40 -07:00
Tobias Crawley
6998dd6929 Support subtask specific help via 'lein help task subtask'
The help task will first look for static help under
'leiningen/help/task-subtask', then for a function name 'help-subtask' in the
subtask's namespace, then a docstring on the subtask function. For the latter
two options, the arglists are also printed.
2012-10-05 14:37:58 -04:00
Phil Hagelberg
929b09c1ba Allow repl profile to be overridden from project.clj. Fixes #789. 2012-10-04 10:22:22 -07:00
Phil Hagelberg
b5dc41a682 Fix repl tests. 2012-10-04 09:26:14 -07:00
Jim Crossley
e770d5e649 Include namespace metadata in test-selector predicates, fixes #242
More specific metadata wins, e.g. deftest trumps its namespace.

Also tweaked the tests a bit so that actual/expected results are now
shown in the output.
2012-10-02 19:38:35 -04:00
Nelson Morris
d254dae544 Reduce output for dependency resolution
Showing every failed repo lookup is bad for users.
They see the failure and get confused.

Hook up a custom listener that has the following behavior:

1. success -> print out artifact name, size, and repository name
2. failure -> ignore unless it is the last repo, then print out failure
   message with artifact name.

Fixes #610.
2012-09-05 14:59:53 -05:00
Phil Hagelberg
5400be18a2 Fix pom and deploy tests. 2012-08-30 10:12:58 -07:00
Phil Hagelberg
22b427aca1 Fix some of the tests. 2012-08-29 19:50:53 -07:00