forked from liuggio/HelpDeskBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first version of composer and travis
- Loading branch information
Showing
8 changed files
with
113 additions
and
115 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
.idea | ||
.idea | ||
vendor/ |
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 | ||
- 5.4 | ||
env: | ||
- SYMFONY_VERSION=v2.0.10 | ||
- SYMFONY_VERSION=origin/2.0 | ||
- SYMFONY_VERSION=origin/master | ||
before_script: php vendor/vendors.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?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', | ||
)); | ||
$loader->register(); | ||
|
||
spl_autoload_register(function($class) { | ||
$class = ltrim($class, '\\'); | ||
if (0 === strpos($class, 'Liuggio\HelpDeskTicketSystemBundle\\')) { | ||
$file = __DIR__.'/../'.str_replace('\\', '/', substr($class, strlen('Liuggio\HelpDeskTicketSystemBundle\\'))).'.php'; | ||
if (file_exists($file)) { | ||
require $file; | ||
} | ||
} | ||
}); |
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,7 @@ | ||
<?php | ||
|
||
if (file_exists($file = __DIR__.'/autoload.php')) { | ||
require_once $file; | ||
} elseif (file_exists($file = __DIR__.'/autoload.php.dist')) { | ||
require_once $file; | ||
} |
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,29 @@ | ||
{ | ||
"name": "Liuggio/help-desk-ticket-system-bundle", | ||
"description": "This bundle provides an help desk and ticketing system for support your customer.", | ||
"keywords": ["menu"], | ||
"type": "symfony-bundle", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Giulio De Donato", | ||
"homepage": "http://www.welcometothebundle.com", | ||
"email": "liuggio@gmail.com" | ||
}, | ||
{ | ||
"name": "Erin Hima", | ||
"email": "erinhima@gmail.com" | ||
}, | ||
{ | ||
"name": "Tvision developers", | ||
"homepage": "https://github.com/tvision" | ||
} | ||
], | ||
"require": { | ||
"symfony/framework-bundle": ">=2.0,<2.2-dev" | ||
}, | ||
"autoload": { | ||
"psr-0": { "Liuggio\\HelpDeskTicketSystemBundle": "" } | ||
}, | ||
"target-dir": "Liuggio/HelpDeskTicketSystemBundle" | ||
} |
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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit colors="false" bootstrap="Tests/bootstrap.php"> | ||
<testsuites> | ||
<testsuite name="Help Desk Ticket System Bundle"> | ||
<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> |
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,22 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
set_time_limit(0); | ||
|
||
$vendorDir = __DIR__; | ||
$deps = array( | ||
array('symfony', 'https://github.com/symfony/symfony', isset($_SERVER['SYMFONY_VERSION']) ? $_SERVER['SYMFONY_VERSION'] : 'origin/master'), | ||
); | ||
|
||
foreach ($deps as $dep) { | ||
list($name, $url, $rev) = $dep; | ||
|
||
echo "> Installing/Updating $name\n"; | ||
|
||
$installDir = $vendorDir.'/'.$name; | ||
if (!is_dir($installDir)) { | ||
system(sprintf('git clone -q %s %s', escapeshellarg($url), escapeshellarg($installDir))); | ||
} | ||
|
||
system(sprintf('cd %s && git fetch -q origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev))); | ||
} |