# HG changeset patch # User Simon Tooke # Date 1509457982 14400 # Node ID ec8316f2d0201b8e8bf3ba56c9c1b2717fa1b80c # Parent 5e79312c807561f2729dbf5f2f637b4f0d1ab923 Fail build on YAML lint error Fail the build on bad swagger files, but "-Dmaven.test.skip=true" will skip the YAML check. Reviewed-by: neugens Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-October/025574.html diff -r 5e79312c8075 -r ec8316f2d020 pom.xml --- a/pom.xml Mon Oct 30 09:51:28 2017 -0400 +++ b/pom.xml Tue Oct 31 09:53:02 2017 -0400 @@ -60,7 +60,7 @@ - 0.1.3 + 0.1.4 UTF-8 UTF-8 diff -r 5e79312c8075 -r ec8316f2d020 services/schema/pom.xml --- a/services/schema/pom.xml Mon Oct 30 09:51:28 2017 -0400 +++ b/services/schema/pom.xml Tue Oct 31 09:53:02 2017 -0400 @@ -50,60 +50,75 @@ Thermostat Web Gateway Schema service + + + lint + + + maven.test.skip + !true + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + listSwaggerFiles + test + + + + + + + + + + + + + run + + + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.6.0 + + + + java + + test + + + + com.redhat.thermostat.common.swaggercombine.SwaggerCombineMain + + --lint + --output= + --throw + ${basedir}/src/main/webapp/WEB-INF/swagger-template.json + @${project.build.directory}/swaggerfiles.txt + + + + + + + + - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - listSwaggerFiles - test - - - - - - - - - - - - run - - - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - - java - - test - - - - com.redhat.thermostat.common.swaggercombine.SwaggerCombineMain - - --lint - --output= - --throw - ${basedir}/src/main/webapp/WEB-INF/swagger-template.json - @${project.build.directory}/swaggerfiles.txt - - - - org.apache.maven.plugins