forked from qury/phpdoc-to-rst
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from abbadon1334/develop
Develop
- Loading branch information
Showing
72 changed files
with
1,586 additions
and
1,487 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,4 +1,9 @@ | ||
/vendor/ | ||
/vendor | ||
.idea/ | ||
composer.lock | ||
docs/_build | ||
composer.phar | ||
/composer.lock | ||
.DS_Store | ||
.php_cs.cache | ||
/build |
Empty 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 |
---|---|---|
@@ -1,20 +1,23 @@ | ||
dist: trusty | ||
sudo: required | ||
language: php | ||
|
||
php: | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
|
||
install: | ||
- composer install --dev --no-interaction | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install -n | ||
- composer require satooshi/php-coveralls:~1.0@stable # Require phpCoveralls | ||
- mkdir -p coverage/xml # Create a folder to store clover files #1 | ||
- mkdir -p build/logs # Create a folder to store clover files #2 | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
- ./cc-test-reporter before-build | ||
|
||
script: | ||
- mkdir build | ||
- cd tests | ||
- phpunit --coverage-clover ../build/clover.xml --configuration phpunit.xml | ||
- cd .. | ||
|
||
- php vendor/bin/phpunit --coverage-clover build/logs/clover.xml | ||
|
||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover build/clover.xml | ||
- php vendor/bin/codacycoverage clover build/logs/clover.xml | ||
- sh -c 'if( [ "$TRAVIS_PHP_VERSION" != "hhvm" ] ); then php vendor/bin/coveralls -v; fi;' | ||
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT |
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,31 +1,33 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
/** | ||
* @copyright Copyright (c) 2017 Julius Härtl <jus@bitgrid.net> | ||
* | ||
* @author Julius Härtl <jus@bitgrid.net> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
require 'vendor/autoload.php'; | ||
|
||
if (!ini_get('date.timezone')) { | ||
ini_set('date.timezone', 'UTC'); | ||
} | ||
|
||
foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) { | ||
if (file_exists($file)) { | ||
define('PHPUNIT_COMPOSER_INSTALL', $file); | ||
break; | ||
} | ||
} | ||
|
||
unset($file); | ||
|
||
if (!defined('PHPUNIT_COMPOSER_INSTALL')) { | ||
fwrite(STDERR, | ||
'You need to set up the project dependencies using the following commands:' . PHP_EOL . | ||
'wget http://getcomposer.org/composer.phar' . PHP_EOL . | ||
'php composer.phar install' . PHP_EOL | ||
); | ||
die(1); | ||
} | ||
|
||
require PHPUNIT_COMPOSER_INSTALL; | ||
|
||
|
||
use Symfony\Component\Console\Application; | ||
|
||
$application = new Application(); | ||
$application->add(new \JuliusHaertl\PHPDocToRst\GenerateDocumentationCommand()); | ||
$application->add(new JuliusHaertl\PHPDocToRst\GenerateDocumentationCommand()); | ||
$application->run(); |
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
Empty file.
Empty file.
Empty file.
Oops, something went wrong.