Skip to content

Commit

Permalink
Merge pull request #265 from JabRef/enable-coverity
Browse files Browse the repository at this point in the history
Enable coverity
  • Loading branch information
simonharrer committed Nov 10, 2015
2 parents 489d513 + 53dc249 commit 275b1c9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![CircleCI](https://img.shields.io/circleci/project/JabRef/jabref.svg)](https://circleci.com/gh/JabRef/jabref)
[![Dependency Status](https://www.versioneye.com/user/projects/557f2723386664002000009c/badge.svg?style=flat)](https://www.versioneye.com/user/projects/557f2723386664002000009c)
[![codecov.io](https://codecov.io/github/JabRef/jabref/coverage.svg?branch=master)](https://codecov.io/github/JabRef/jabref?branch=master)
[![Coverity Status](https://badges.ondemand.coverity.com/streams/unhetcisrp7nna3b5cilqev4bk)](https://ondemand.coverity.com/streams/unhetcisrp7nna3b5cilqev4bk)
[![License](https://img.shields.io/badge/license-GPLv2-blue.svg)](http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt)
[![Join the chat at https://gitter.im/JabRef/jabref](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/JabRef/jabref?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Donation](https://img.shields.io/badge/donate-paypal-orange.svg)](https://www.paypal.com/cgi-bin/webscr?item_name=JabRef+Bibliography+Manager&cmd=_donations&lc=US&currency_code=EUR&business=jabrefmail%40gmail.com)
Expand Down
15 changes: 14 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import org.gradle.internal.os.OperatingSystem
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.2'
id "edu.sc.seis.launch4j" version "1.1.4"
id "com.github.kt3k.coveralls" version "2.4.0"
id "com.github.kt3k.coveralls" version "2.4.0x"
id "edu.sc.seis.macAppBundle" version "2.1.1"
id "com.github.youribonnaffe.gradle.format" version "1.2"
id "com.coverity.ondemand" version "1.3.708"
}

apply plugin: "java"
Expand All @@ -15,6 +16,17 @@ apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply from: 'eclipse.gradle'

// HACK to disable coverityCheck task when not on CI server
// necessary as coverity automatically adds check.dependsOn coverityCheck
gradle.taskGraph.whenReady { taskGraph ->
def tasks = taskGraph.getAllTasks()
if (System.env.CI == null) {
tasks.findAll {it.name.startsWith('coverityCheck')}.each { task ->
task.enabled = false
}
}
}

group = "net.sf.jabref"
version = "2.80dev"
project.ext.threeDotVersion = "2.80.0.0"
Expand All @@ -27,6 +39,7 @@ task wrapper(type: Wrapper) {
gradleVersion = '2.8'
}


repositories {
jcenter()
}
Expand Down
1 change: 1 addition & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ test:
override:
- TERM=dumb ./gradlew test
post:
- TERM=dumb ./gradlew coverityCheck
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- TERM=dumb ./gradlew jacocoTestReport coveralls
Expand Down

0 comments on commit 275b1c9

Please sign in to comment.