Another ugly progress commit, moved base src dir to src/, and base test dir to tests/

This commit is contained in:
Timothy Warren 2016-08-29 14:32:28 -04:00
parent 1050bee698
commit 4a4e48e039
62 changed files with 50 additions and 25 deletions

View File

@ -12,26 +12,27 @@ test:5.6:
before_script: before_script:
- bash build/docker_install.sh > /dev/null - bash build/docker_install.sh > /dev/null
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar install --no-dev - php composer.phar update
- php composer.phar install
image: php:5.6 image: php:5.6
script: script:
- phpunit -c build - vendor/bin/phpunit --coverage-text --colors=never
test:7: test:7:
before_script: before_script:
- bash build/docker_install.sh > /dev/null - bash build/docker_install.sh > /dev/null
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar install --no-dev - php composer.phar update
- php composer.phar install
image: php:7 image: php:7
script: script:
- phpunit -c build - vendor/bin/phpunit --coverage-text --colors=never
test:hhvm: test:hhvm:
before_script: before_script:
- /usr/local/bin/composer self-update - /usr/local/bin/composer self-update
- curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar - composer update
- chmod +x /usr/local/bin/phpunit - composer install
- composer install --no-dev
image: 51systems/docker-gitlab-ci-runner-hhvm image: 51systems/docker-gitlab-ci-runner-hhvm
script: script:
- phpunit -c build - vendor/bin/phpunit --coverage-text --colors=never

View File

@ -28,13 +28,25 @@ class RoboFile extends \Robo\Tasks {
* @var array * @var array
*/ */
protected $taskDirs = [ protected $taskDirs = [
'build/api',
'build/coverage',
'build/logs', 'build/logs',
'build/pdepend', 'build/pdepend',
'build/phpdox', 'build/phpdox',
]; ];
/**
* Directories to remove with the clean task
*
* @var array
*/
protected $cleanDirs = [
'coverage',
'docs',
'phpdoc',
'build/logs',
'build/phpdox',
'build/pdepend'
];
/** /**
* Do static analysis tasks * Do static analysis tasks
@ -72,8 +84,17 @@ class RoboFile extends \Robo\Tasks {
@unlink($file); @unlink($file);
}, $cleanFiles); }, $cleanFiles);
$this->_cleanDir($this->taskDirs); // So the task doesn't complain,
$this->_deleteDir($this->taskDirs); // make any 'missing' dirs to cleanup
array_map(function ($dir) {
if ( ! is_dir($dir))
{
`mkdir -p {$dir}`;
}
}, $this->cleanDirs);
$this->_cleanDir($this->cleanDirs);
$this->_deleteDir($this->cleanDirs);
} }
/** /**

View File

@ -36,6 +36,7 @@
<rule ref="PEAR.Commenting.FunctionComment"> <rule ref="PEAR.Commenting.FunctionComment">
<!-- Exclude this sniff because it doesn't understand multiple types --> <!-- Exclude this sniff because it doesn't understand multiple types -->
<exclude name="PEAR.Commenting.FunctionComment.MissingParamComment" /> <exclude name="PEAR.Commenting.FunctionComment.MissingParamComment" />
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamType" />
</rule> </rule>
<!-- Use warnings for docblock comments for files and variables, since nothing is cleary explained --> <!-- Use warnings for docblock comments for files and variables, since nothing is cleary explained -->

View File

@ -8,16 +8,16 @@
> >
<filter> <filter>
<whitelist> <whitelist>
<directory suffix=".php">../src/Ion</directory> <directory suffix=".php">../src</directory>
</whitelist> </whitelist>
</filter> </filter>
<testsuites> <testsuites>
<testsuite name="Ion"> <testsuite name="Ion">
<directory>../tests/Ion</directory> <directory>../tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<logging> <logging>
<log type="coverage-html" target="coverage"/> <log type="coverage-html" target="../coverage"/>
<log type="coverage-clover" target="logs/clover.xml"/> <log type="coverage-clover" target="logs/clover.xml"/>
<log type="coverage-crap4j" target="logs/crap4j.xml"/> <log type="coverage-crap4j" target="logs/crap4j.xml"/>
<log type="coverage-xml" target="logs/coverage" /> <log type="coverage-xml" target="logs/coverage" />

View File

@ -4,12 +4,12 @@
"license":"MIT", "license":"MIT",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Aviat\\": "src/" "Aviat\\Ion\\": "src/"
} }
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
"Aviat\\Ion\\Tests\\": "tests/Ion/", "Aviat\\Ion\\Tests\\": "tests/",
"CodeIgniter\\": "build/CodeIgniter/" "CodeIgniter\\": "build/CodeIgniter/"
} }
}, },

View File

@ -8,9 +8,11 @@
<target>phpdoc</target> <target>phpdoc</target>
</transformer> </transformer>
<transformations> <transformations>
<template name="clean" /> <template name="zend" />
</transformations> </transformations>
<files> <files>
<directory>src/Aviat</directory> <directory>src</directory>
<directory>vendor/container-interop/container-interop/src</directory>
<directory>vendor/danielstjules/stringy/src</directory>
</files> </files>
</phpdoc> </phpdoc>

View File

@ -7,12 +7,12 @@
> >
<filter> <filter>
<whitelist> <whitelist>
<directory suffix=".php">src/Ion</directory> <directory suffix=".php">src</directory>
</whitelist> </whitelist>
</filter> </filter>
<testsuites> <testsuites>
<testsuite name="Ion"> <testsuite name="Ion">
<directory>tests/Ion</directory> <directory>tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<php> <php>

View File

@ -96,8 +96,8 @@ class Container implements ContainerInterface {
/** /**
* Get a new instance of the specified item * Get a new instance of the specified item
* *
* @param string $id - Identifier of the entry to look for. * @param string $id - Identifier of the entry to look for.
* @param array [$args] - Optional arguments for the factory callable * @param array $args - Optional arguments for the factory callable
* @throws NotFoundException - No entry was found for this identifier. * @throws NotFoundException - No entry was found for this identifier.
* @throws ContainerException - Error while retrieving the entry. * @throws ContainerException - Error while retrieving the entry.
* @return mixed * @return mixed
@ -182,7 +182,7 @@ class Container implements ContainerInterface {
* Add a logger to the Container * Add a logger to the Container
* *
* @param LoggerInterface $logger * @param LoggerInterface $logger
* @param string $id The logger 'channel' * @param string $id The logger 'channel'
* @return ContainerInterface * @return ContainerInterface
*/ */
public function setLogger(LoggerInterface $logger, $id = 'default') public function setLogger(LoggerInterface $logger, $id = 'default')

View File

@ -61,7 +61,7 @@ interface ContainerInterface extends InteropInterface {
* Add a logger to the Container * Add a logger to the Container
* *
* @param LoggerInterface $logger * @param LoggerInterface $logger
* @param string $id The logger 'channel' * @param string $id The logger 'channel'
* @return Container * @return Container
*/ */
public function setLogger(LoggerInterface $logger, $id = 'default'); public function setLogger(LoggerInterface $logger, $id = 'default');