Moved the configuration files to a dedicated folder

This commit is contained in:
Cédric Belin
2019-04-18 12:15:05 +02:00
parent 72ad2d9c84
commit 07567ba1e0
5 changed files with 7 additions and 7 deletions

View File

@ -43,9 +43,9 @@ class RoboFile extends Tasks {
->addTask($this->taskFilesystemStack() ->addTask($this->taskFilesystemStack()
->copy('CHANGELOG.md', 'doc/about/changelog.md') ->copy('CHANGELOG.md', 'doc/about/changelog.md')
->copy('LICENSE.md', 'doc/about/license.md')) ->copy('LICENSE.md', 'doc/about/license.md'))
->addTask($this->taskExec('mkdocs build --config-file=doc/mkdocs.yml')) ->addTask($this->taskExec('mkdocs build --config-file=etc/mkdocs.yml'))
->addTask($this->taskFilesystemStack() ->addTask($this->taskFilesystemStack()
->remove(['doc/about/changelog.md', 'doc/about/license.md', 'web/mkdocs.yml', 'web/phpdoc.xml'])) ->remove(['doc/about/changelog.md', 'doc/about/license.md']))
->run(); ->run();
} }
@ -56,7 +56,7 @@ class RoboFile extends Tasks {
function lint(): Result { function lint(): Result {
return $this->taskExecStack() return $this->taskExecStack()
->exec('php -l example/main.php') ->exec('php -l example/main.php')
->exec('phpstan analyse') ->exec('phpstan analyse --configuration=etc/phpstan.neon')
->run(); ->run();
} }
@ -65,7 +65,7 @@ class RoboFile extends Tasks {
* @return Result The task result. * @return Result The task result.
*/ */
function test(): Result { function test(): Result {
return $this->_exec('phpunit --configuration=test/phpunit.xml'); return $this->_exec('phpunit --configuration=etc/phpunit.xml');
} }
/** /**

View File

@ -3,7 +3,7 @@ site_description: Gitea client library, in PHP.
site_author: SAB International - contact@sabcomputer.com site_author: SAB International - contact@sabcomputer.com
site_url: https://dev.sabcomputer.com/gitea.php site_url: https://dev.sabcomputer.com/gitea.php
docs_dir: . docs_dir: ../doc
site_dir: ../web site_dir: ../web
repo_name: GitHub repo_name: GitHub

View File

@ -6,7 +6,7 @@
<target>../var</target> <target>../var</target>
</parser> </parser>
<transformer> <transformer>
<target>api</target> <target>../doc/api</target>
</transformer> </transformer>
<transformations> <transformations>
<template name="responsive"/> <template name="responsive"/>

View File

@ -12,7 +12,7 @@
<testsuites> <testsuites>
<testsuite name="all"> <testsuite name="all">
<directory suffix="Test.php">.</directory> <directory suffix="Test.php">../test</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
</phpunit> </phpunit>