Issue #2516: Create test for checkstyle-X.X-all.jar on Travis

This commit is contained in:
Roman Ivanov 2015-11-10 08:27:49 -08:00
parent 60dce45e8f
commit fe48db9cc0
2 changed files with 13 additions and 8 deletions

View File

@ -42,10 +42,15 @@ matrix:
# assembly (oraclejdk8)
- jdk: oraclejdk8
env:
- DESC="assembly"
- CMD1="mvn clean install -Passembly -DskipTests -DskipITs -Dcobertura.skip=true"
- CMD2=" -Dpmd.skip=true -Dfindbugs.skip=true -Dcheckstyle.ant.skip=true"
- CMD=$CMD1$CMD2
- DESC="assembly & run '-all' jar"
- CMD1="mvn clean package -Passembly"
- CMD2=" && CS_POM_VERSION=$(mvn -q -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)"
- CMD3=" && echo verson:\$CS_POM_VERSION"
- CMD4=" && java -jar target/checkstyle-\$CS_POM_VERSION-all.jar -c /google_checks.xml"
- CMD5=" src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule332nolinewrap/InputNoLineWrapGood.java > output.log"
- CMD6=" && cat output.log"
- CMD7=" && cat output.log | grep 'warning|(Audit done.)' | if [[ \"Audit done.\" != $? ]]; then exit 1; fi"
- CMD=$CMD1$CMD2$CMD3$CMD4$CMD5$CMD6$CMD7
- COVERAGE_CMD=""
# nemo.sonarqube.com (oraclejdk7)
- jdk: oraclejdk7

View File

@ -2,12 +2,12 @@ package com.google.checkstyle.test.chapter3filestructure.rule332nolinewrap; //ok
import com.google.common.annotations.Beta; //ok
import javax.accessibility.AccessibleAttributeSequence; //ok
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; //ok
import javax.accessibility.AccessibleAttributeSequence; //ok
public class InputNoLineWrapGood {
public void fooMethod() {
//
}
public void fooMethod() {
//
}
}