Permalink
Browse files

Added <phantomjs>

  • Loading branch information...
1 parent 748ccce commit bf2989ba2700632fdd4cb2afe6b7b30027669cfe @nzakas committed Dec 26, 2011
Showing with 23 additions and 2 deletions.
  1. +3 −0 buildr.properties
  2. +19 −0 macros/phantomjs.xml
  3. +1 −2 macros/yeti.xml
View
@@ -26,6 +26,9 @@ buildr.jshint = jshint.js
buildr.jshint.path = ${buildr.lib.dir}/${buildr.jshint}
buildr.jshint.opts = curly=true,forin=true,latedef=true,noempty=true,undef=true,rhino=false
+# PhantomJS
+buildr.phantomjs = phantomjs
+
# Props2Js
buildr.props2js = props2js-0.1.0.jar
buildr.props2js.path = ${buildr.lib.dir}/${buildr.props2js}
View
@@ -0,0 +1,19 @@
+<project name="phantomjs">
+
+ <!-- macro to test files -->
+ <macrodef name="phantomjs">
+
+ <attribute name="driver" />
+ <attribute name="failonerror" default="true" />
+ <element name="files" implicit="true"/>
+
+ <sequential>
+ <echo>Testing with PhantomJS</echo>
+ <apply executable="${buildr.phantomjs}" parallel="true" failonerror="@{failonerror}">
+ <files/>
+ <arg path="@{driver}"/>
+ <srcfile/>
+ </apply>
+ </sequential>
+ </macrodef>
+</project>
View
@@ -3,12 +3,11 @@
<!-- macro to test files -->
<macrodef name="yeti">
-
<attribute name="failonerror" default="true" />
<element name="files" implicit="true"/>
<sequential>
- <echo>Documenting with yeti Toolkit</echo>
+ <echo>Testing with Yeti</echo>
<apply executable="${buildr.yeti}" failonerror="@{failonerror}">
<files/>
<srcfile/>

0 comments on commit bf2989b

Please sign in to comment.