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()
->copy('CHANGELOG.md', 'doc/about/changelog.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()
->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();
}
@ -56,7 +56,7 @@ class RoboFile extends Tasks {
function lint(): Result {
return $this->taskExecStack()
->exec('php -l example/main.php')
->exec('phpstan analyse')
->exec('phpstan analyse --configuration=etc/phpstan.neon')
->run();
}
@ -65,7 +65,7 @@ class RoboFile extends Tasks {
* @return Result The task result.
*/
function test(): Result {
return $this->_exec('phpunit --configuration=test/phpunit.xml');
return $this->_exec('phpunit --configuration=etc/phpunit.xml');
}
/**