Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Coveralls integration
Browse files Browse the repository at this point in the history
  • Loading branch information
cr0 committed Mar 4, 2015
1 parent 38d36dd commit d198237
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

# Run JUnit tests and generate reports
./gradlew testGlobal coberturaReport performCoverageCheck javadocAll
./gradlew testGlobal coberturaReport performCoverageCheck coveralls javadocAll

# SonarQube disabled for now. Took >43min on Travis!

Expand All @@ -12,7 +12,7 @@ set -e

# Line of code stats
cloc --quiet --xml --out=build/reports/cloc.xml $(find -type d -name main | grep src/main)

# Generate manpages
./gradlew manpages

Expand All @@ -21,6 +21,6 @@ cloc --quiet --xml --out=build/reports/cloc.xml $(find -type d -name main | grep
./gradlew distZip
./gradlew debian
./gradlew exe

# Upload distributables and JavaDoc
./gradle/lftp/lftpupload.sh
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Syncany
=======
[![Build Status](https://travis-ci.org/syncany/syncany.svg?branch=master)](https://travis-ci.org/syncany/syncany) [![Coverage Status](https://api.syncany.org/badge/coverage.php)](https://syncany.org/reports/coverage/) [![Test Status](https://api.syncany.org/badge/tests.php)](https://syncany.org/reports/tests/) [![Lines of Code](https://api.syncany.org/badge/lines.php)](https://syncany.org/reports/cloc.xml) [![tip for next commit](http://tip4commit.com/projects/822.svg)](http://tip4commit.com/github/syncany/syncany) [![Documentation Status](https://readthedocs.org/projects/syncany/badge/?version=latest)](https://readthedocs.org/projects/syncany/?badge=latest) [![Issues needing your help](https://badge.waffle.io/syncany/syncany.svg?label=status:help-needed&title=Needs+your+help)](http://waffle.io/syncany/syncany) [![Flattr](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/thing/290043/Syncany)
[![Build Status](https://travis-ci.org/syncany/syncany.svg?branch=master)](https://travis-ci.org/syncany/syncany) [![Coverage Status](https://coveralls.io/repos/syncany/syncany/badge.svg)](https://coveralls.io/r/syncany/syncany) [![Test Status](https://api.syncany.org/badge/tests.php)](https://syncany.org/reports/tests/) [![Lines of Code](https://api.syncany.org/badge/lines.php)](https://syncany.org/reports/cloc.xml) [![tip for next commit](http://tip4commit.com/projects/822.svg)](http://tip4commit.com/github/syncany/syncany) [![Documentation Status](https://readthedocs.org/projects/syncany/badge/?version=latest)](https://readthedocs.org/projects/syncany/?badge=latest) [![Issues needing your help](https://badge.waffle.io/syncany/syncany.svg?label=status:help-needed&title=Needs+your+help)](http://waffle.io/syncany/syncany) [![Flattr](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/thing/290043/Syncany)



Expand All @@ -15,7 +15,7 @@ open-source and additionally provides data encryption and more flexibility in
terms of storage type and provider:

- **Data encryption**: Syncany encrypts the files locally, so that any online
storage can be used even for sensitive data.
storage can be used even for sensitive data.
- **Any storage**: Syncany uses a plug-in based storage system. It can
be used with any type of remote storage.

Expand All @@ -41,8 +41,8 @@ Buy us a coffee
---------------
If you like what you see and you want to support us, you can buy us a coffee or a beer. There are maaanny ways to do so.

Break some hashes for us by [donating some Bitcoins](https://blockchain.info/address/1626wjrw3uWk9adyjCfYwafw4sQWujyjn8) (also via [tip4commit](http://tip4commit.com/github/syncany/syncany)); or be a charmer and [flattr us](https://flattr.com/thing/290043/Syncany). If that's not for you, why not give us some change [with PayPal](http://www.syncany.org/donate.html)? Any contributions are much appreciated!
Break some hashes for us by [donating some Bitcoins](https://blockchain.info/address/1626wjrw3uWk9adyjCfYwafw4sQWujyjn8) (also via [tip4commit](http://tip4commit.com/github/syncany/syncany)); or be a charmer and [flattr us](https://flattr.com/thing/290043/Syncany). If that's not for you, why not give us some change [with PayPal](http://www.syncany.org/donate.html)? Any contributions are much appreciated!

Licensing, website and contact
------------------------------
Syncany is licensed under the GPLv3 open source license. It is actively developed by [Philipp C. Heckel](http://blog.philippheckel.com/), the [Syncany Team](https://github.com/orgs/syncany/teams/syncany-team) and [many](AUTHORS.md) [others](https://github.com/syncany/syncany/graphs/contributors). We are always looking for people to join or help out. Feel free to contact us:
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ apply from: 'gradle/gradle/helpers.gradle'
project.ext {
applicationVersion = "0.4.4-alpha"
applicationVersionDebian = "1";

applicationRelease = isApplicationRelease()
applicationDate = new Date()
applicationRevision = getRevision()

applicationVersionSnapshot = (!applicationRelease) ? "+SNAPSHOT.${asUTC(applicationDate, 'yyMMddHHmm')}.git${applicationRevision}" : ""
applicationVersionFull = "${applicationVersion}${applicationVersionSnapshot}"
}
Expand All @@ -26,7 +26,7 @@ apply from: 'gradle/gradle/application.distribution.gradle'
apply from: 'gradle/gradle/packaging.innosetup.gradle'
apply from: 'gradle/gradle/packaging.debian.gradle'

apply from: 'gradle/gradle/reports.cobertura.gradle'
apply from: 'gradle/gradle/reports.coverage.gradle'
apply from: 'gradle/gradle/reports.tests.gradle'
apply from: 'gradle/gradle/reports.javadoc.gradle'
apply from: 'gradle/gradle/reports.sonarqube.gradle'
Expand All @@ -45,8 +45,8 @@ dependencies {
compile project(":syncany-lib")
compile project(":syncany-cli")
compile project(":syncany-util")

testCompile project(path: ":syncany-lib", configuration: "tests")
testCompile project(path: ":syncany-cli", configuration: "tests")
testCompile project(path: ":syncany-util", configuration: "tests")
testCompile project(path: ":syncany-util", configuration: "tests")
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,34 @@ buildscript {
}

dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.2.2'
classpath 'net.saliman:gradle-cobertura-plugin:2.2.2'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.3.1'
}
}

// Reference by FQCN instead of name: http://forums.gradle.org/gradle/topics/plugin_not_found_when_i_using_a_gradle_from_other_gradle_file
apply plugin: net.saliman.gradle.plugin.cobertura.CoberturaPlugin
apply plugin: org.kt3k.gradle.plugin.CoverallsPlugin

subprojects {
apply plugin: net.saliman.gradle.plugin.cobertura.CoberturaPlugin
apply plugin: org.kt3k.gradle.plugin.CoverallsPlugin
}

cobertura {
coverageFormats = ['html', 'xml']
cobertura {
coverageFormats = ['html', 'xml']
coverageReportDatafile = file("build/cobertura/cobertura.ser")
coverageReportDir = file("build/reports/coverage")

coverageDirs = []
coverageSourceDirs = []
coverageMergeDatafiles = []

rootProject.subprojects.each {
coverageFormats = ['html', 'xml']
coverageFormats = ['html', 'xml']
coverageDirs << file("${it.buildDir}/classes/main")
coverageSourceDirs << file("${it.projectDir}/src/main/java")
coverageMergeDatafiles << file("${it.buildDir}/cobertura/cobertura.ser")
}
}
}

0 comments on commit d198237

Please sign in to comment.