diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 265afb8..2f51368 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,26 +12,27 @@ test:5.6: before_script: - bash build/docker_install.sh > /dev/null - 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 script: - - phpunit -c build + - vendor/bin/phpunit --coverage-text --colors=never test:7: before_script: - bash build/docker_install.sh > /dev/null - curl -sS https://getcomposer.org/installer | php - - php composer.phar install --no-dev + - php composer.phar update + - php composer.phar install image: php:7 script: - - phpunit -c build + - vendor/bin/phpunit --coverage-text --colors=never test:hhvm: before_script: - /usr/local/bin/composer self-update - - curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar - - chmod +x /usr/local/bin/phpunit - - composer install --no-dev + - composer update + - composer install image: 51systems/docker-gitlab-ci-runner-hhvm script: - - phpunit -c build \ No newline at end of file + - vendor/bin/phpunit --coverage-text --colors=never \ No newline at end of file diff --git a/RoboFile.php b/RoboFile.php index 2af1ee8..47ba7d7 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -28,13 +28,25 @@ class RoboFile extends \Robo\Tasks { * @var array */ protected $taskDirs = [ - 'build/api', - 'build/coverage', 'build/logs', 'build/pdepend', '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 @@ -72,8 +84,17 @@ class RoboFile extends \Robo\Tasks { @unlink($file); }, $cleanFiles); - $this->_cleanDir($this->taskDirs); - $this->_deleteDir($this->taskDirs); + // So the task doesn't complain, + // 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); } /** diff --git a/build/phpcs.xml b/build/phpcs.xml index 2432930..58d9c54 100644 --- a/build/phpcs.xml +++ b/build/phpcs.xml @@ -36,6 +36,7 @@ + diff --git a/build/phpunit.xml b/build/phpunit.xml index 9677773..8b7823a 100644 --- a/build/phpunit.xml +++ b/build/phpunit.xml @@ -8,16 +8,16 @@ > - ../src/Ion + ../src - ../tests/Ion + ../tests - + diff --git a/composer.json b/composer.json index 362d959..3285a6c 100644 --- a/composer.json +++ b/composer.json @@ -4,12 +4,12 @@ "license":"MIT", "autoload": { "psr-4": { - "Aviat\\": "src/" + "Aviat\\Ion\\": "src/" } }, "autoload-dev": { "psr-4": { - "Aviat\\Ion\\Tests\\": "tests/Ion/", + "Aviat\\Ion\\Tests\\": "tests/", "CodeIgniter\\": "build/CodeIgniter/" } }, diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml index 2fa15d4..a774037 100644 --- a/phpdoc.dist.xml +++ b/phpdoc.dist.xml @@ -8,9 +8,11 @@ phpdoc -