forked from doctrine/phpcr-odm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first steps towards testing on travis using composer
- Loading branch information
Showing
26 changed files
with
61 additions
and
255 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 |
---|---|---|
|
@@ -2,6 +2,10 @@ nbproject | |
*~ | ||
tests/phpunit.xml | ||
|
||
lib/vendor | ||
/cli-config.php | ||
jackrabbit/ | ||
|
||
vendor/ | ||
|
||
composer.lock | ||
composer.phar |
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
<?php | ||
|
||
$vendorDir = __DIR__.'/vendor'; | ||
|
||
spl_autoload_register(function($class) | ||
{ | ||
if (0 === strpos($class, 'Doctrine\ODM\PHPCR')) { | ||
$path = __DIR__.'/lib/'.implode('/', explode('\\', $class)).'.php'; | ||
if (!stream_resolve_include_path($path)) { | ||
return false; | ||
} | ||
require_once $path; | ||
return true; | ||
} | ||
if (0 === strpos($class, 'Doctrine\Tests')) { | ||
$path = __DIR__.'/tests/'.implode('/', explode('\\', $class)).'.php'; | ||
if (!stream_resolve_include_path($path)) { | ||
return false; | ||
} | ||
require_once $path; | ||
return true; | ||
} | ||
}); | ||
|
||
$file = $vendorDir.'/.composer/autoload.php'; | ||
if (file_exists($file)) { | ||
$autoload = require_once $file; | ||
} else { | ||
throw new RuntimeException('Install dependencies to run test suite.'); | ||
} | ||
|
||
use Doctrine\Common\Annotations\AnnotationRegistry; | ||
|
||
AnnotationRegistry::registerLoader(function($class) use ($autoload) { | ||
$autoload->loadClass($class); | ||
return class_exists($class, false); | ||
}); | ||
AnnotationRegistry::registerFile(__DIR__.'/lib/Doctrine/ODM/PHPCR/Mapping/Annotations/DoctrineAnnotations.php'); |
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
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
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
Submodule Yaml
deleted from
1eaee0
Submodule doctrine-common
deleted from
38c854
Submodule phpcr
deleted from
a1ebfa
Submodule phpcr-utils
deleted from
778846
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
#!/bin/bash | ||
|
||
git submodule update --init --recursive | ||
|
||
mysql -e 'create database IF NOT EXISTS phpcr_odm_tests;' -u root | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
php $DIR/vendor/vendors_doctrine_dbal.php | ||
|
||
cp cli-config.doctrine_dbal.php.dist cli-config.php | ||
./bin/phpcr jackalope:init:dbal | ||
./bin/phpcr doctrine:phpcr:register-system-node-types |
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 |
---|---|---|
@@ -1,11 +1,6 @@ | ||
#!/bin/bash | ||
|
||
git submodule update --init --recursive | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
php $DIR/vendor/vendors_jackrabbit.php | ||
|
||
./lib/vendor/jackalope-jackrabbit/tests/travis.sh | ||
./vendor/jackalope/jackalope-jackrabbit/tests/travis.sh | ||
|
||
cp cli-config.jackrabbit.php.dist cli-config.php | ||
./bin/phpcr doctrine:phpcr:register-system-node-types |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.