Skip to content

Commit

Permalink
Merge pull request #632 from ancho/build/openjdk14
Browse files Browse the repository at this point in the history
cleanup and build against openjdk 14
  • Loading branch information
ancho authored Apr 17, 2020
2 parents 0f85e2a + 753992a commit 33228c9
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 13 deletions.
28 changes: 16 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: java

os: linux
dist: trusty
dist: bionic

addons:
hosts:
Expand All @@ -14,31 +14,35 @@ before_install:
install: true

script:
- "./gradlew check"

after_failure:
- "./gradlew clean check -debug --stacktrace"

after_success:
- "./gradlew -PskipSigning jacocoRootReport coveralls || ./gradlew clean"
- "./gradlew check --stacktrace"

jdk:
- openjdk14
- openjdk11
- oraclejdk8
- openjdk8

jobs:
include:

- script: "./gradlew check"
jdk:
- jdk: openjdk14
os: osx

- jdk: openjdk11
os: osx

- stage: Quality Check
jdk: oraclejdk8
name: sonarqube
jdk: openjdk11
script:
- "./gradlew jacocoRootReport sonarqube -i --stacktrace"

- stage: Quality Check
name: coveralls
jdk: openjdk11
script:
- "./gradlew -PskipSigning jacocoRootReport coveralls -i --stacktrace"
- curl -F 'json_file=@build/coveralls/report.json' 'https://coveralls.io/api/v1/jobs'

notifications:
irc: "irc.freenode.org#jbake"
webhooks:
Expand Down
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
image:
- Visual Studio 2019
version: '{build}'
skip_tags: true
skip_commits:
Expand All @@ -8,6 +10,7 @@ environment:
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
- JAVA_HOME: C:\Program Files\Java\jdk11
- JAVA_HOME: C:\Program Files\Java\jdk14

install:
- SET PATH=%JAVA_HOME%\bin;%PATH%
Expand Down
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ subprojects {

test {
useJUnitPlatform()

testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}

dependencies {
Expand Down Expand Up @@ -180,6 +185,8 @@ task testReport(type: TestReport) {
coveralls {
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/jacocoRootReport.xml"
saveAsFile = true
sendToCoveralls = false
}

tasks.coveralls {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ assertjCoreVersion = 3.15.0
mockitoVersion = 3.3.3

# build dependencies
jacocoVersion = 0.8.3
jacocoVersion = 0.8.5
grgitVersion = 1.6.0


Expand Down
7 changes: 7 additions & 0 deletions jbake-dist/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@ task smokeTest(type: Test, dependsOn: installDist) {
shouldRunAfter test
}

smokeTest {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}

check.dependsOn smokeTest

0 comments on commit 33228c9

Please sign in to comment.