diff --git a/.travis.yml b/.travis.yml index 79f62d2..145d8f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: clojure lein: lein2 +after_script: + - bash -ex test/coveralls.sh jdk: - openjdk7 - oraclejdk8 diff --git a/project.clj b/project.clj index b471f75..8ba90ec 100644 --- a/project.clj +++ b/project.clj @@ -9,4 +9,5 @@ :test2junit-output-dir "ghpages/test-results" :test2junit-run-ant true :aot [clj-assorted-utils.JavaUtils] + :plugins [[lein-cloverage "1.0.2"]] ) diff --git a/test/coveralls.sh b/test/coveralls.sh new file mode 100644 index 0000000..d545b92 --- /dev/null +++ b/test/coveralls.sh @@ -0,0 +1,4 @@ +COVERALLS_URL='https://coveralls.io/api/v1/jobs' +lein2 cloverage -o cov --coveralls +curl -F 'json_file=@cov/coveralls.json' "$COVERALLS_URL" +