Permalink
Browse files

Added a travis config

  • Loading branch information...
1 parent b143e36 commit f0f62dcc0e550d5043688f88dd22a18624f29f03 @stof committed Feb 28, 2012
Showing with 51 additions and 1 deletion.
  1. +2 −1 .gitignore
  2. +13 −0 .travis.yml
  3. +36 −0 phpunit.travis.xml
View
3 .gitignore
@@ -1 +1,2 @@
-phpunit.xml
+phpunit.xml
+vendor/
View
13 .travis.yml
@@ -0,0 +1,13 @@
+language: php
+
+php:
+ - 5.3
+ - 5.4
+
+before_script:
+ - git clone https://github.com/kamicane/packager.git vendor/packager --quiet --depth 1
+ - git clone https://github.com/leafo/lessphp.git vendor/lessphp --quiet --depth 1
+ - git clone https://github.com/fabpot/Twig.git vendor/twig --quiet --depth 1
+ - svn checkout http://cssmin.googlecode.com/svn/trunk/ vendor/cssmin --quiet
+
+script: phpunit --configuration phpunit.travis.xml
View
36 phpunit.travis.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit bootstrap="./tests/bootstrap.php" colors="true">
+ <testsuites>
+ <testsuite name="Assetic Test Suite">
+ <directory suffix="Test.php">./tests/Assetic/Test/</directory>
+ </testsuite>
+ </testsuites>
+
+ <php>
+ <!-- <server name="CLOSURE_JAR" value="/path/to/google-closure/compiler.jar" /> -->
+ <!-- <server name="COFFEE_BIN" value="/path/to/coffee" /> -->
+ <!-- <server name="NODE_BIN" value="/path/to/node" /> -->
+ <!-- <server name="NODE_PATH" value="/path/to/node/lib" /> -->
+ <server name="LESSPHP" value="vendor/lessphp/lessc.inc.php" />
+ <!-- <server name="SASS_BIN" value="/path/to/sass" /> -->
+ <!-- <server name="COMPASS_BIN" value="/path/to/compass" /> -->
+ <!-- <server name="RUBY_BIN" value="/path/to/ruby" /> -->
+ <!-- <server name="SPROCKETS_LIB" value="/path/to/sprockets/lib" /> -->
+ <server name="TWIG_LIB" value="vendor/twig/lib" />
+ <!-- <server name="YUI_COMPRESSOR_JAR" value="/path/to/yuicompressor-2.4.2.jar" /> -->
+ <!-- <server name="OPTIPNG_BIN" value="/path/to/optipng" /> -->
+ <!-- <server name="JPEGOPTIM_BIN" value="/path/to/jpegoptim" /> -->
+ <!-- <server name="JPEGTRAN_BIN" value="/path/to/jpegtran" /> -->
+ <!-- <server name="PNGOUT_BIN" value="/path/to/pngout" /> -->
+ <server name="CSSMIN" value="vendor/cssmin/source/CssMin.php" />
+ <!-- <server name="CSSEMBED_JAR" value="/path/to/cssembed.jar" /> -->
+ <server name="PACKAGER" value="vendor/packager/packager.php" />
+ </php>
+
+ <filter>
+ <whitelist>
+ <directory suffix=".php">./src/Assetic/</directory>
+ </whitelist>
+ </filter>
+</phpunit>

0 comments on commit f0f62dc

Please sign in to comment.