Permalink
Browse files

Build, CI: Integrated test coverage upload coveralls.io.

  • Loading branch information...
eseifert committed Aug 3, 2017
1 parent fe42ae1 commit 92f4b1dee4137ca30f794149337e076754d5b90d
Showing with 22 additions and 23 deletions.
  1. +13 −10 .travis.yml
  2. +9 −13 gral-core/build.gradle
View
@@ -3,20 +3,20 @@ sudo: required
language: java
jdk:
- oraclejdk8
- oraclejdk7
- oraclejdk8
- oraclejdk7
before_install:
- sudo add-apt-repository ppa:cwchien/gradle -y
- sudo apt-get update -q
- sudo apt-get install gradle -y
- export PATH=/usr/bin:$PATH # Use gradle from /usr/bin
- gradle --version
- sudo add-apt-repository ppa:cwchien/gradle -y
- sudo apt-get update -q
- sudo apt-get install gradle -y
- export PATH=/usr/bin:$PATH # Use gradle from /usr/bin
- gradle --version
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
notifications:
irc:
@@ -26,3 +26,6 @@ notifications:
on_failure: always
template:
- "%{repository} (%{branch}:%{commit} by %{author}): %{message} (%{build_url})"
after_success:
- gradle cobertura coveralls
View
@@ -13,8 +13,9 @@ buildscript {
apply plugin: 'me.champeau.gradle.jmh'
dependencies {
testCompile(group: 'junit', name: 'junit', version: '4.12')
jmh(group: 'commons-io', name: 'commons-io', version: '2.4')
testCompile 'junit:junit:4.12'
jmh 'commons-io:commons-io:2.4'
testRuntime 'org.slf4j:slf4j-log4j12:1.7.25' // Required for Cobertura
}
buildscript {
@@ -24,11 +25,17 @@ buildscript {
}
}
dependencies {
classpath 'net.sf.proguard:proguard-gradle:5.2.+'
classpath 'net.saliman:gradle-cobertura-plugin:2.5.0'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.1'
}
}
apply plugin: 'net.saliman.cobertura'
cobertura.coverageFormats = ['html', 'xml']
apply plugin: 'com.github.kt3k.coveralls'
task report {
dependsOn = ['cobertura', check]
description = 'Generates reports.'
@@ -125,14 +132,3 @@ uploadArchives {
}
}
signArchives.dependsOn(shrinkJar)
// Include the proguard-gradle plugin
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'net.sf.proguard:proguard-gradle:5.2.+'
}
}

0 comments on commit 92f4b1d

Please sign in to comment.