plugin-ci
No long description provided.
Installation
dagger install github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf
Entrypoint
Return Type
PluginCi !
Arguments
Name | Type | Description |
---|---|---|
plugin | Directory ! | Plugin to run CI on |
dependencyFile | String | Path to dependency file required for the plugin If not provided defaults to plugin_requirements.txt |
phpVersion | String | No description provided |
moodleVersion | String | Branch of moodle to run against |
moodleRepo | String | Moodle repository to pull from |
database | String | No description provided |
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH
func (m *myModule) example(plugin *Directory) *PluginCi {
return dag.
PluginCi(plugin)
}
@function
def example(plugin: dagger.Directory, ) -> dag.PluginCi:
return (
dag.plugin_ci(plugin)
)
@func()
example(plugin: Directory, ): PluginCi {
return dag
.pluginCi(plugin)
}
Types
PluginCi 🔗
plugin() 🔗
Return Type
Directory !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH plugin
func (m *myModule) example(plugin *Directory) *Directory {
return dag.
PluginCi(plugin).
Plugin()
}
@function
def example(plugin: dagger.Directory, ) -> dagger.Directory:
return (
dag.plugin_ci(plugin)
.plugin()
)
@func()
example(plugin: Directory, ): Directory {
return dag
.pluginCi(plugin)
.plugin()
}
dependencies() 🔗
Return Type
String !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH dependencies
func (m *myModule) example(ctx context.Context, plugin *Directory) string {
return dag.
PluginCi(plugin).
Dependencies(ctx)
}
@function
async def example(plugin: dagger.Directory, ) -> str:
return await (
dag.plugin_ci(plugin)
.dependencies()
)
@func()
async example(plugin: Directory, ): Promise<string> {
return dag
.pluginCi(plugin)
.dependencies()
}
phpVersion() 🔗
Return Type
String !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH php-version
func (m *myModule) example(ctx context.Context, plugin *Directory) string {
return dag.
PluginCi(plugin).
PhpVersion(ctx)
}
@function
async def example(plugin: dagger.Directory, ) -> str:
return await (
dag.plugin_ci(plugin)
.php_version()
)
@func()
async example(plugin: Directory, ): Promise<string> {
return dag
.pluginCi(plugin)
.phpVersion()
}
moodleVersion() 🔗
Return Type
String !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH moodle-version
func (m *myModule) example(ctx context.Context, plugin *Directory) string {
return dag.
PluginCi(plugin).
MoodleVersion(ctx)
}
@function
async def example(plugin: dagger.Directory, ) -> str:
return await (
dag.plugin_ci(plugin)
.moodle_version()
)
@func()
async example(plugin: Directory, ): Promise<string> {
return dag
.pluginCi(plugin)
.moodleVersion()
}
database() 🔗
Return Type
String !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH database
func (m *myModule) example(ctx context.Context, plugin *Directory) string {
return dag.
PluginCi(plugin).
Database(ctx)
}
@function
async def example(plugin: dagger.Directory, ) -> str:
return await (
dag.plugin_ci(plugin)
.database()
)
@func()
async example(plugin: Directory, ): Promise<string> {
return dag
.pluginCi(plugin)
.database()
}
message() 🔗
Return Type
String !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH message
func (m *myModule) example(ctx context.Context, plugin *Directory) string {
return dag.
PluginCi(plugin).
Message(ctx)
}
@function
async def example(plugin: dagger.Directory, ) -> str:
return await (
dag.plugin_ci(plugin)
.message()
)
@func()
async example(plugin: Directory, ): Promise<string> {
return dag
.pluginCi(plugin)
.message()
}
mariadbService() 🔗
Return Type
Service !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH mariadb-service
func (m *myModule) example(plugin *Directory) *Service {
return dag.
PluginCi(plugin).
MariadbService()
}
@function
def example(plugin: dagger.Directory, ) -> dagger.Service:
return (
dag.plugin_ci(plugin)
.mariadb_service()
)
@func()
example(plugin: Directory, ): Service {
return dag
.pluginCi(plugin)
.mariadbService()
}
postgresService() 🔗
Return Type
Service !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH postgres-service
func (m *myModule) example(plugin *Directory) *Service {
return dag.
PluginCi(plugin).
PostgresService()
}
@function
def example(plugin: dagger.Directory, ) -> dagger.Service:
return (
dag.plugin_ci(plugin)
.postgres_service()
)
@func()
example(plugin: Directory, ): Service {
return dag
.pluginCi(plugin)
.postgresService()
}
getDependencies() 🔗
Downloads and provides all dependencies needed to install the plugin
Return Type
Directory !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH get-dependencies
func (m *myModule) example(plugin *Directory) *Directory {
return dag.
PluginCi(plugin).
GetDependencies()
}
@function
def example(plugin: dagger.Directory, ) -> dagger.Directory:
return (
dag.plugin_ci(plugin)
.get_dependencies()
)
@func()
example(plugin: Directory, ): Directory {
return dag
.pluginCi(plugin)
.getDependencies()
}
moodle() 🔗
Init function for setting up template that other jobs draw from
Return Type
Container !
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH moodle
func (m *myModule) example(plugin *Directory) *Container {
return dag.
PluginCi(plugin).
Moodle()
}
@function
def example(plugin: dagger.Directory, ) -> dagger.Container:
return (
dag.plugin_ci(plugin)
.moodle()
)
@func()
example(plugin: Directory, ): Container {
return dag
.pluginCi(plugin)
.moodle()
}
test() 🔗
Run specified test(s)
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
operations | [String ! ] | ["phplint"] | Array of testing operation to perform Example: dagger call --plugin=./plugin/ --dependencies=./dependencies/ test --operations="phplint,phpmd" Defaults to lint Options: phplint, phpmd, phpcs, phpdoc, validate, savepoints, mustache, grunt, phpunit, all, |
Example
dagger -m github.com/ginjiruu/moodle_plugin_ci/pluginci@40908068011f4a20f4dcc719dbf52495483e68bf call \
--plugin DIR_PATH test
func (m *myModule) example(ctx context.Context, plugin *Directory) string {
return dag.
PluginCi(plugin).
Test(ctx)
}
@function
async def example(plugin: dagger.Directory, ) -> str:
return await (
dag.plugin_ci(plugin)
.test()
)
@func()
async example(plugin: Directory, ): Promise<string> {
return dag
.pluginCi(plugin)
.test()
}