mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-31 20:12:29 +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()
|
->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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -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
|
||||||
@ -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"/>
|
||||||
@ -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>
|
||||||
Reference in New Issue
Block a user