layout | title |
---|---|
page |
Moodle Plugin CI Commands |
add-config
add-plugin
behat
codechecker
coveralls-upload
grunt
help
install
list
mustache
parallel
phpcbf
phpcpd
phpdoc
phplint
phpmd
phpunit
savepoints
validate
Add a line to the Moodle config.php file
add-config [-m|--moodle MOODLE] [--] <line>
Add a line to the Moodle config.php file
Line of PHP code to add to the Moodle config.php file
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'.'
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Queue up an additional plugin to be installed in the test site
add-plugin [-b|--branch BRANCH] [-c|--clone CLONE] [--storage STORAGE] [--] [<project>]
Queue up an additional plugin to be installed in the test site
GitHub project, EG: moodlehq/moodle-local_hub, can't be used with --clone option
- Is required: no
- Is array: no
- Default:
NULL
The branch to checkout in plugin repo (if non-default)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Git clone URL, can't be used with --project option
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Plugin storage directory
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'moodle-plugin-ci-plugins'
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run Behat on a plugin
behat [-m|--moodle MOODLE] [-p|--profile PROFILE] [--suite SUITE] [--start-servers] [--auto-rerun AUTO-RERUN] [--dump] [--] <plugin>
Run Behat on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'.'
Behat profile to use
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'default'
Behat suite to use (Moodle theme)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'default'
Start Selenium and PHP servers
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Number of times to rerun failures
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
2
Print contents of Behat failure HTML files
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run Moodle Code Checker on a plugin
codechecker [-s|--standard STANDARD] [--max-warnings MAX-WARNINGS] [--] <plugin>
Run Moodle Code Checker on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
The name or path of the coding standard to use
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'moodle'
Number of warnings to trigger nonzero exit code - default: -1
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
-1
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Upload code coverage to Coveralls
coveralls-upload [--coverage-file COVERAGE-FILE] [--] <plugin>
Upload code coverage to Coveralls
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Location of the Clover XML file to upload
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'./coverage.xml'
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run Grunt task on a plugin
grunt [-m|--moodle MOODLE] [-t|--tasks TASKS] [--show-lint-warnings] [--max-lint-warnings MAX-LINT-WARNINGS] [--] <plugin>
Run Grunt task on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'.'
The Grunt tasks to run
- Accept value: yes
- Is value required: yes
- Is multiple: yes
- Default:
array ( 0 => 'amd', 1 => 'yui', 2 => 'gherkinlint', 3 => 'stylelint:css', 4 => 'stylelint:less', 5 => 'stylelint:scss',)
Show eslint warnings
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Maximum number of eslint warnings
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
''
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Displays help for a command
help [--format FORMAT] [--raw] [--] [<command_name>]
The help command displays help for a given command:
php bin/moodle-plugin-ci help list
You can also output the help in other formats by using the --format option:
php bin/moodle-plugin-ci help --format=xml list
To display the list of available commands, please use the list command.
The command name
- Is required: no
- Is array: no
- Default:
'help'
The output format (txt, xml, json, or md)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'txt'
To output raw command help
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Install everything required for CI testing
install [--moodle MOODLE] [--data DATA] [--repo REPO] [--branch BRANCH] [--plugin PLUGIN] [--db-type DB-TYPE] [--db-user DB-USER] [--db-pass DB-PASS] [--db-name DB-NAME] [--db-host DB-HOST] [--db-port DB-PORT] [--not-paths NOT-PATHS] [--not-names NOT-NAMES] [--extra-plugins EXTRA-PLUGINS] [--no-init] [--node-version NODE-VERSION]
Install everything required for CI testing
Clone Moodle to this directory
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'moodle'
Directory create for Moodle data files
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'moodledata'
Moodle repository to clone
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'git://github.com/moodle/moodle.git'
Moodle git branch to clone, EG: MOODLE_29_STABLE
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Path to Moodle plugin
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Database type, mysqli, pgsql or mariadb
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Database user
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Database pass
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
''
Database name
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'moodle'
Database host
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'localhost'
Database port
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
''
CSV of file paths to exclude
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
CSV of file names to exclude
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Directory of extra plugins to install
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Prevent PHPUnit and Behat initialization
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Node.js version to use for nvm install (this will override one defined in .nvmrc)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Lists commands
list [--raw] [--format FORMAT] [--] [<namespace>]
The list command lists all commands:
php bin/moodle-plugin-ci list
You can also display the commands for a specific namespace:
php bin/moodle-plugin-ci list test
You can also output the information in other formats by using the --format option:
php bin/moodle-plugin-ci list --format=xml
It's also possible to get raw list of commands (useful for embedding command runner):
php bin/moodle-plugin-ci list --raw
The namespace name
- Is required: no
- Is array: no
- Default:
NULL
To output raw command list
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
The output format (txt, xml, json, or md)
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'txt'
Run Mustache Lint on a plugin
mustache [-m|--moodle MOODLE] [--] <plugin>
Run Mustache Lint on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'.'
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run all of the tests and analysis against a plugin
parallel [-m|--moodle MOODLE] [--] <plugin>
Run all of the tests and analysis against a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'.'
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run Code Beautifier and Fixer on a plugin
phpcbf [-s|--standard STANDARD] [--] <plugin>
Run Code Beautifier and Fixer on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
The name or path of the coding standard to use
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'moodle'
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run PHP Copy/Paste Detector on a plugin
phpcpd <plugin>
Run PHP Copy/Paste Detector on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run Moodle PHPDoc Checker on a plugin
phpdoc [-m|--moodle MOODLE] [--] <plugin>
Run Moodle PHPDoc Checker on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'.'
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run PHP Lint on a plugin
phplint <plugin>
Run PHP Lint on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run PHP Mess Detector on a plugin
phpmd [-m|--moodle MOODLE] [-r|--rules RULES] [--] <plugin>
Run PHP Mess Detector on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'.'
Path to PHP Mess Detector rule set
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
NULL
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Run PHPUnit on a plugin
phpunit [-m|--moodle MOODLE] [--coverage-text] [--coverage-clover] [--] <plugin>
Run PHPUnit on a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'.'
Generate and print code coverage report in text format
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Generate code coverage report in Clover XML format
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Check upgrade savepoints
savepoints <plugin>
Check upgrade savepoints
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Validate a plugin
validate [-m|--moodle MOODLE] [--] <plugin>
Validate a plugin
Path to the plugin
- Is required: yes
- Is array: no
- Default:
NULL
Path to Moodle
- Accept value: yes
- Is value required: yes
- Is multiple: no
- Default:
'.'
Display this help message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Force ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Disable ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Default:
false