mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-29 19:12:30 +01:00
Moved the configuration files to a dedicated folder
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -3,7 +3,7 @@ site_description: Gitea client library, in PHP.
|
||||
site_author: SAB International - contact@sabcomputer.com
|
||||
site_url: https://dev.sabcomputer.com/gitea.php
|
||||
|
||||
docs_dir: .
|
||||
docs_dir: ../doc
|
||||
site_dir: ../web
|
||||
|
||||
repo_name: GitHub
|
||||
@ -6,7 +6,7 @@
|
||||
<target>../var</target>
|
||||
</parser>
|
||||
<transformer>
|
||||
<target>api</target>
|
||||
<target>../doc/api</target>
|
||||
</transformer>
|
||||
<transformations>
|
||||
<template name="responsive"/>
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
<testsuites>
|
||||
<testsuite name="all">
|
||||
<directory suffix="Test.php">.</directory>
|
||||
<directory suffix="Test.php">../test</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
Reference in New Issue
Block a user