diff --git a/.travis.yml b/.travis.yml index 5669acc..2212fab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 6f7fb25..776c30d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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. @@ -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 diff --git a/project.clj b/project.clj index 3091260..b18a3ee 100644 --- a/project.clj +++ b/project.clj @@ -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"]]}}