-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
|
||
before_script: | ||
- php vendor/vendors.php | ||
|
||
script: phpunit --configuration Tests/phpunit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
$vendorDir = __DIR__.'/../vendor'; | ||
require_once $vendorDir.'/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php'; | ||
|
||
use Symfony\Component\ClassLoader\UniversalClassLoader; | ||
|
||
|
||
$loader = new UniversalClassLoader(); | ||
$loader->registerNamespaces(array( | ||
'Symfony' => $vendorDir.'/symfony/src', | ||
'Doctrine\\Common' => $vendorDir.'/doctrine-common/lib', | ||
'Ps\\PdfBundle' => __DIR__.'/..', | ||
'PHPPdf' => $vendorDir.'/PHPPdf/lib', | ||
'Imagine' => $vendorDir.'/Imagine/lib', | ||
'Zend' => $vendorDir.'/Zend/library' | ||
)); | ||
|
||
$loader->register(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit bootstrap="bootstrap.php"> | ||
<filter> | ||
<whitelist addUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">./</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
set_time_limit(0); | ||
|
||
$deps = array( | ||
array('symfony', 'git://github.com/symfony/symfony.git', isset($_ENV['SYMFONY_VERSION']) ? $_ENV['SYMFONY_VERSION'] : 'v2.0.9'), | ||
array('Doctrine\Common', 'git://github.com/doctrine/common.git', isset($_ENV['DOCTRINE_COMMON_VERSION']) ? $_ENV['DOCTRINE_COMMON_VERSION'] : '2.1.4'), | ||
array('Markdown', 'git://github.com/wolfie/php-markdown.git', 'd464071334'), | ||
array('Zend', 'git://github.com/zendframework/zf2.git', 'master'), | ||
array('Imagine', 'git://github.com/avalanche123/Imagine.git', 'v0.2.6') | ||
); | ||
|
||
foreach ($deps as $dep) { | ||
list($name, $url, $rev) = $dep; | ||
|
||
echo "> Installing/Updating $name\n"; | ||
|
||
$installDir = __DIR__.'/'.$name; | ||
if (!is_dir($installDir)) { | ||
system(sprintf('git clone %s %s', $url, $installDir)); | ||
} | ||
|
||
system(sprintf('cd %s && git fetch origin && git reset --hard %s', $installDir, $rev)); | ||
} |