diff --git a/.gitignore b/.gitignore index 26c549e..3d4190e 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,7 @@ target/ .worksheet #bluecove -bluecove* +*/*/bluecove* + +#tokens +secrets.tar diff --git a/.travis.yml b/.travis.yml index ad4cc3a..83a5ade 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,13 @@ language: scala scala: - 2.11.4 +script: +- sbt clean coverage test +before_install: +- openssl aes-256-cbc -K $encrypted_48ebb0d1c0b9_key -iv $encrypted_48ebb0d1c0b9_iv + -in secrets.tar.enc -out secrets.tar -d +- tar xvf secrets.tar +after_success: +- sbt coverageReport +- sbt coverageAggregate +- sbt codacyCoverage diff --git a/README.md b/README.md index 3e1f904..74c7a0b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # PowerAPI +[![Build Status](https://travis-ci.org/Spirals-Team/powerapi.svg?branch=develop)](https://travis-ci.org/Spirals-Team/powerapi) +[![Codacy Badge](https://www.codacy.com/project/badge/e0b0e331ca414250a7240b6be74aaa7b)](https://www.codacy.com/public/maximecolmant/powerapi) + PowerAPI is a middleware toolkit for building software-defined power meters. Software-defined power meters are configurable software libraries that can estimate the power consumption of software in real-time. PowerAPI supports the acquisition of raw metrics from a wide diversity of sensors (*eg.*, physical meters, processor interfaces, hardware counters, OS counters) and the delivery of power consumptions via different channels (including file system, network, web, graphical). diff --git a/build.sbt b/build.sbt index 0966598..8e72f2f 100644 --- a/build.sbt +++ b/build.sbt @@ -19,4 +19,4 @@ libraryDependencies in ThisBuild ++= Seq( parallelExecution in (ThisBuild, Test) := false -instrumentSettings +codacyProjectTokenFile := Some("./codacy-token.txt") diff --git a/project/codacy-coverage.sbt b/project/codacy-coverage.sbt new file mode 100644 index 0000000..8d96dd5 --- /dev/null +++ b/project/codacy-coverage.sbt @@ -0,0 +1,3 @@ +resolvers += "Typesafe Repository" at "https://repo.typesafe.com/typesafe/releases/" + +addSbtPlugin("com.codacy" % "sbt-codacy-coverage" % "1.0.3") diff --git a/project/scoverage.sbt b/project/scoverage.sbt index 6e45aa6..d5f24ee 100644 --- a/project/scoverage.sbt +++ b/project/scoverage.sbt @@ -1 +1 @@ -addSbtPlugin("org.scoverage" %% "sbt-scoverage" % "0.99.11") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.0.4") diff --git a/secrets.tar.enc b/secrets.tar.enc new file mode 100644 index 0000000..f528135 Binary files /dev/null and b/secrets.tar.enc differ