Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
Reduced some of the coverage noise from componentbuilds. echos now ha…
Browse files Browse the repository at this point in the history
…ve info, and we don't lint coverage files (for now)
  • Loading branch information
sdesai committed Aug 15, 2012
1 parent 8567905 commit 1358f0c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions componentbuild/shared/targets.xml
Expand Up @@ -78,7 +78,7 @@
<target name="build" />

<target name="build-coverage" unless="coverage.skip">
<echo>Creating coverage file for: ${component.builddir}/${component.basefilename}.js</echo>
<echo level="info">Creating coverage file for: ${component.builddir}/${component.basefilename}.js</echo>
<yuicoverage src="${component.builddir}/${component.basefilename}.js" dest="${component.builddir}/${component.basefilename}-coverage.js" />
<move file="${component.builddir}/${component.basefilename}-coverage.js" tofile="${component.builddir}/${component.basefilename}-coverage.js.tmp" />

Expand Down Expand Up @@ -116,20 +116,15 @@
<!-- Lint all files -->
<jslint>
<jsfiles>
<fileset dir="${component.builddir}" includes="*.js" />
<fileset dir="${component.builddir}" includes="*.js" excludes="*-coverage.js" />
</jsfiles>
</jslint>
</then>
<else>
<!-- Only lint raw files -->
<jslint>
<jsfiles>
<fileset dir="${component.builddir}" includes="*.js">
<none>
<filename name="*-debug.js"/>
<filename name="*-min.js"/>
</none>
</fileset>
<fileset dir="${component.builddir}" includes="*.js" excludes="*-coverage.js, *-debug.js, *-min.js" />
</jsfiles>
</jslint>
</else>
Expand Down

0 comments on commit 1358f0c

Please sign in to comment.