Skip to content

Commit

Permalink
Added a travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Feb 28, 2012
1 parent b143e36 commit f0f62dc
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
phpunit.xml
phpunit.xml
vendor/
13 changes: 13 additions & 0 deletions .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
36 changes: 36 additions & 0 deletions 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.