Skip to content

Commit

Permalink
Adding code-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kolotaev committed Dec 2, 2017
1 parent 9fc493d commit e6f5f3c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ branches:
jdk:
- openjdk7
- oraclejdk8
after_success:
- CLOVERAGE_VERSION=1.0.10-SNAPSHOT lein cloverage --codecov
- bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/kolotaev/iron-cache.svg?branch=master)](https://travis-ci.org/kolotaev/iron-cache)
[![codecov.io](https://codecov.io/github/kolotaev/iron-cache/coverage.svg?branch=master)](https://codecov.io/github/kolotaev/iron-cache?branch=master)

# IronCache Client Library for Clojure

Expand Down Expand Up @@ -95,7 +96,7 @@ The arguments to functions are:
* Cache name - required
* Key name - for key operations
* Data - map for key `put`, Numeric for key `incr`. See [put](http://dev.iron.io/cache/reference/api/#put_an_item_into_a_cache) and [incr](http://dev.iron.io/cache/reference/api/#increment_an_items_value)
* Callbacks - map of :ok and :fail callbacks. See [async](#async)
* Callbacks - map of `:ok` and `:fail` callbacks. See [async](#async)

Keys and cache names can be either strings or keywords.

Expand Down Expand Up @@ -213,6 +214,7 @@ Client has unit and integration tests. You can run them simply as
lein test :unit # only unit-tests
lein test :integration # only integration tests
lein test # all the tests
lein cloverage # run code-coverage report
```

## License
Expand Down
2 changes: 2 additions & 0 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
[cheshire "5.7.1"]
[clj-http "3.7.0"]]

:plugins [[lein-cloverage "1.0.10-SNAPSHOT"]]

:profiles {:dev {:dependencies [[ring/ring-jetty-adapter "1.6.1"]
[clj-http-fake "1.0.3"]]}}

Expand Down

0 comments on commit e6f5f3c

Please sign in to comment.