More travis

This commit is contained in:
jamesagnew 2015-06-20 18:32:00 -04:00
parent fe03527f14
commit 65e1af4c73
6 changed files with 22 additions and 10 deletions

View File

@ -1,7 +1,14 @@
# Use docker-based build environment (instead of openvz)
sudo: false
language: java language: java
jdk: jdk:
- oraclejdk7 - oraclejdk7
install: mvn clean install -Dcobertura.skip=true cache:
script: mvn -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID -P COBERTURA clean cobertura:check directories:
- '$HOME/.m2/repository'
install: /bin/true
script:
- mvn -B -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID -P COBERTURA clean cobertura:check && mvn -B clean install -Dcobertura.skip=true

View File

@ -216,6 +216,8 @@
<version>${maven_cobertura_plugin_version}</version> <version>${maven_cobertura_plugin_version}</version>
<configuration> <configuration>
<skip>false</skip> <skip>false</skip>
<format>xml</format>
<maxmem>256m</maxmem>
<instrumentation> <instrumentation>
<ignores> <ignores>
<ignore>ca.uhn.fhir.model.dstu.valueset.*</ignore> <ignore>ca.uhn.fhir.model.dstu.valueset.*</ignore>
@ -325,17 +327,18 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!--
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId> <artifactId>cobertura-maven-plugin</artifactId>
<version>${maven_cobertura_plugin_version}</version> <version>${maven_cobertura_plugin_version}</version>
<configuration> <configuration>
<check> <check>
<!-- <branchRate>85</branchRate> <lineRate>85</lineRate> <haltOnFailure>true</haltOnFailure> <branchRate>85</branchRate> <lineRate>85</lineRate> <haltOnFailure>true</haltOnFailure>
<totalBranchRate>85</totalBranchRate> <totalLineRate>85</totalLineRate> <packageLineRate>85</packageLineRate> <totalBranchRate>85</totalBranchRate> <totalLineRate>85</totalLineRate> <packageLineRate>85</packageLineRate>
<packageBranchRate>85</packageBranchRate> <regexes> <regex> <pattern>com.example.reallyimportant.*</pattern> <packageBranchRate>85</packageBranchRate> <regexes> <regex> <pattern>com.example.reallyimportant.*</pattern>
<branchRate>90</branchRate> <lineRate>80</lineRate> </regex> <regex> <pattern>com.example.boringcode.*</pattern> <branchRate>90</branchRate> <lineRate>80</lineRate> </regex> <regex> <pattern>com.example.boringcode.*</pattern>
<branchRate>40</branchRate> <lineRate>30</lineRate> </regex> </regexes> --> <branchRate>40</branchRate> <lineRate>30</lineRate> </regex> </regexes>
</check> </check>
</configuration> </configuration>
<executions> <executions>
@ -347,6 +350,7 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
-->
</plugins> </plugins>
<resources> <resources>
</resources> </resources>

View File

@ -156,7 +156,7 @@ public class TinderClientMojo extends AbstractMojo {
File file = new File(myDirectoryBase, myClientClassSimpleName + ".java"); File file = new File(myDirectoryBase, myClientClassSimpleName + ".java");
FileWriter w = new FileWriter(file, false); FileWriter w = new FileWriter(file, false);
ourLog.info("Writing file: {}", file.getAbsolutePath()); ourLog.debug("Writing file: {}", file.getAbsolutePath());
VelocityContext ctx = new VelocityContext(); VelocityContext ctx = new VelocityContext();
ctx.put("packageBase", myPackageBase); ctx.put("packageBase", myPackageBase);

View File

@ -121,8 +121,9 @@ public class TinderStructuresMojo extends AbstractMojo {
rp.getLocalImports().putAll(datatypeLocalImports); rp.getLocalImports().putAll(datatypeLocalImports);
datatypeLocalImports.putAll(rp.getLocalImports()); datatypeLocalImports.putAll(rp.getLocalImports());
ourLog.info("Writing Resources...");
File resSubDirectoryBase = new File(directoryBase, "resource"); File resSubDirectoryBase = new File(directoryBase, "resource");
ourLog.info("Writing Resources to directory: {}", resSubDirectoryBase.getAbsolutePath());
rp.combineContentMaps(dtp); rp.combineContentMaps(dtp);
rp.writeAll(resSubDirectoryBase, resDirectoryBase, packageName); rp.writeAll(resSubDirectoryBase, resDirectoryBase, packageName);
} }

View File

@ -274,7 +274,7 @@ public class ValueSetGenerator {
File f = new File(theOutputDirectory, theValueSetTm.getClassName() + ".java"); File f = new File(theOutputDirectory, theValueSetTm.getClassName() + ".java");
FileWriter w = new FileWriter(f, false); FileWriter w = new FileWriter(f, false);
ourLog.info("Writing file: {}", f.getAbsolutePath()); ourLog.debug("Writing file: {}", f.getAbsolutePath());
VelocityContext ctx = new VelocityContext(); VelocityContext ctx = new VelocityContext();
ctx.put("valueSet", theValueSetTm); ctx.put("valueSet", theValueSetTm);

View File

@ -396,7 +396,7 @@ public abstract class BaseStructureParser {
private void write(BaseRootType theResource, File theFile, String thePackageBase) throws IOException, MojoFailureException { private void write(BaseRootType theResource, File theFile, String thePackageBase) throws IOException, MojoFailureException {
FileWriter w = new FileWriter(theFile, false); FileWriter w = new FileWriter(theFile, false);
ourLog.info("Writing file: {}", theFile.getAbsolutePath()); ourLog.debug("Writing file: {}", theFile.getAbsolutePath());
ArrayList<String> imports = new ArrayList<String>(); ArrayList<String> imports = new ArrayList<String>();
for (String next : myImports) { for (String next : myImports) {
@ -486,7 +486,7 @@ public abstract class BaseStructureParser {
} }
for (BaseRootType next : myResources) { for (BaseRootType next : myResources) {
ourLog.info("Writing Resource {}", next.getName()); ourLog.debug("Writing Resource {}", next.getName());
scanForCorrections(next); scanForCorrections(next);
scanForTypeNameConflicts(next); scanForTypeNameConflicts(next);