Skip to content

Commit

Permalink
Merge pull request Azure#4 from moderakh/master
Browse files Browse the repository at this point in the history
add code coverage
  • Loading branch information
moderakh authored May 28, 2017
2 parents 9a44f99 + 7ff734b commit 4f596b6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ matrix:
include:
- os: linux
jdk: oraclejdk8
- os: osx
osx_image: xcode8
# - os: osx
# osx_image: xcode8
script:
- cd azure-documentdb-rx
- mvn dependency:resolve
- zip -d ~/.m2/repository/com/microsoft/azure/azure-documentdb/1.11.0/azure-documentdb-1.11.0.jar 'META-INF/*.SF' 'META-INF/*.RSA'
- mvn test -P fast -DargLine="-DACCOUNT_HOST=$ACCOUNT_HOST -DACCOUNT_KEY=$ACCOUNT_KEY"
- zip -d $HOME/.m2/repository/com/microsoft/azure/azure-documentdb/1.11.0/azure-documentdb-1.11.0.jar 'META-INF/*.SF' 'META-INF/*.RSA' || echo "maybe already fixed and cached!"
- mvn test -P fast -DargLine="-DACCOUNT_HOST=$ACCOUNT_HOST -DACCOUNT_KEY=$ACCOUNT_KEY" cobertura:cobertura
after_success:
- bash <(curl -s https://codecov.io/bash)


cache:
directories:
- $HOME/.m2
15 changes: 15 additions & 0 deletions azure-documentdb-rx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@
</properties>
<build>
<plugins>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
<check />
</configuration>
</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit 4f596b6

Please sign in to comment.