Skip to content

Commit

Permalink
refs spotbugs#337: install spotbugs packages before testing gradle pl…
Browse files Browse the repository at this point in the history
…ugin

refer discussion at:
spotbugs@f7a08d9
  • Loading branch information
KengoTODA committed Sep 11, 2017
1 parent f9fc32f commit ee291a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ install:
- rm -rf eclipse
- tar xzvf deps/eclipse-SDK-4.6.3-linux-gtk-x86_64.tar.gz eclipse
- echo eclipseRoot.dir=$(pwd)/eclipse > eclipsePlugin/local.properties
# To run gradlePlugin:test, we need to install spotbugs and its dependencies into local repository
- ./gradlew install -x test

script:
# Manually switch to JDK9 if needed
Expand Down
6 changes: 5 additions & 1 deletion gradlePlugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ dependencies {
testCompile 'junit:junit:4.12'//, 'org.spockframework:spock-core:1.0-groovy-2.4'
}

test { //show test output
test {
// SpotBugsPluginTest.java needs SpotBugs packages in Maven local
dependsOn ':spotbugs-annotations:install'
dependsOn ':spotbugs:install'
// show test output
testLogging.showStandardStreams = true
}

Expand Down

0 comments on commit ee291a8

Please sign in to comment.