Skip to content
Browse files

setup travis and aligned dir structure with other Liip Bundles

  • Loading branch information...
1 parent c31b554 commit 2cfd8c3d4d565c260e9d00612656bf01b20661b8 @lsmith77 lsmith77 committed Jul 20, 2012
View
3 .gitignore
@@ -0,0 +1,3 @@
+vendor/
+composer.lock
+composer.phar
View
19 .travis.yml
@@ -0,0 +1,19 @@
+language: php
+
+php:
+ - 5.3
+ - 5.4
+
+env:
+ - SYMFONY_VERSION=2.0.*
+ - SYMFONY_VERSION=dev-master
+
+before_script:
+ - curl -s http://getcomposer.org/installer | php --
+ - php composer.phar require symfony/framework-bundle:${SYMFONY_VERSION}
+
+script: phpunit --coverage-text
+
+notifications:
+ email:
+ - travis-ci@liip.ch
View
2 README.md
@@ -6,6 +6,8 @@ a helper to control the reverse proxy varnish.
This bundle works with Symfony 2.0 as well as the upcoming release 2.1.
+[![Build Status](https://secure.travis-ci.org/liip/LiipCacheControlBundle.png)](http://travis-ci.org/liip/LiipCacheControlBundle)
+
Installation with Symfony 2.0
=============================
View
5 composer.json
@@ -2,8 +2,9 @@
"name": "liip/cache-control-bundle",
"type": "symfony-bundle",
"description": "This Bundle provides a way to set path based cache expiration headers via the app configuration and provides a helper to control the reverse proxy varnish.",
- "keywords": ["esi", "varnish", "caching"],
+ "keywords": ["esi", "varnish", "caching", "http"],
"license": "MIT",
+ "minimum-stability": "dev",
"authors": [
{
"name": "Liip AG",
@@ -16,7 +17,7 @@
],
"require": {
"php": ">=5.3.2",
- "symfony/framework-bundle": ">2.0,<2.2-dev"
+ "symfony/framework-bundle": "dev-master"
},
"autoload": {
"psr-0": { "Liip\\CacheControlBundle": "" }
View
21 phpunit.xml.dist
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit bootstrap="./Tests/bootstrap.php" colors="true">
+
+ <testsuites>
+ <testsuite name="LiipCacheControlBundle test suite">
+ <directory suffix="Test.php">./Tests</directory>
+ </testsuite>
+ </testsuites>
+
+ <filter>
+ <whitelist>
+ <directory>./</directory>
+ <exclude>
+ <directory>./Resources</directory>
+ <directory>./Tests</directory>
+ <directory>./vendor</directory>
+ </exclude>
+ </whitelist>
+ </filter>
+</phpunit>
View
0 ...ventListener/CacheControlListenerTest.php → ...ventListener/CacheControlListenerTest.php
File renamed without changes.
View
8 tests/bootstrap.php 100755 → 100644
@@ -1,6 +1,8 @@
<?php
-error_reporting(E_ALL);
+$file = __DIR__.'/../vendor/autoload.php';
+if (!file_exists($file)) {
+ throw new RuntimeException('Install dependencies to run test suite.');
+}
-$loader = require __DIR__.'/../vendor/autoload.php';
-$loader->add('LiipCacheControlBundle\Test', __DIR__);
+$autoload = require_once $file;
View
30 tests/phpunit.xml.dist
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<phpunit backupGlobals="false"
- backupStaticAttributes="false"
- colors="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
- stopOnFailure="false"
- syntaxCheck="false"
- bootstrap="./bootstrap.php"
->
- <testsuites>
- <testsuite name="LiipCacheControlBundle Test Suite">
- <directory>./LiipCacheControlBundle</directory>
- </testsuite>
- </testsuites>
-
- <filter>
- <whitelist addUncoveredFilesFromWhitelist="true">
- <directory>../</directory>
- <exclude>
- <directory>../Resources</directory>
- <directory>../tests</directory>
- <directory>../vendor</directory>
- </exclude>
- </whitelist>
- </filter>
-</phpunit>

0 comments on commit 2cfd8c3

Please sign in to comment.
Something went wrong with that request. Please try again.