1 // Moodle Development Kit configuration file
3 // A comment in this file MUST be preceded by white spaces or nothing.
5 // This configuration file will be looked for in those directories:
6 // - ~/.moodle-sdk/config.json
7 // - /etc/moodle-sdk/config.json
11 // Directories to work with.
12 // All of them must exist and must be writeable by the current user.
13 // www and storage CANNOT point to the same directory and must be writeable.
15 // The web directory you are going to access Moodle from, typically your virtual host DocumentRoot.
16 // A symlink to the web directory of your Moodle instance will be created here.
18 // The directory where the instances will be stored.
19 "storage": "~/moodles",
20 // A directory used by MDK to store different kind of things such as scripts and backups.
21 "moodle": "~/.moodle-sdk",
22 // Used for cached repositories and stuff which could be shared system-wide.
23 "mdk": "~/.moodle-sdk"
26 // List of remotes to work with
27 // The integration branch MUST end with integration.git
29 "stable": "git://git.moodle.org/moodle.git",
30 "integration": "git://git.moodle.org/integration.git",
31 "mine": "git@github.com:YourGitHub/moodle.git"
36 // Name prefix for all databases created by mdk. Affects the database name only, not the tables.
58 // Define the way your want things to be called
61 // How to name your instances
62 "prefixStable": "stable_",
63 "prefixIntegration": "integration_",
64 "prefixMaster": "master",
65 "suffixSeparator": "_",
67 // How to name your branches
68 // Read the doc about Python regular expressions if you need to modify them
69 // http://docs.python.org/library/re.html
70 "branchFormat": "MDL-%(issue)s-%(version)s",
71 "branchSuffixSeparator": "-",
72 "branchRegex": "^MDL-(?P<issue>[0-9]+)-(?P<version>[0-9a-z]+)(-(?P<suffix>[a-z0-9_-]+))?",
74 // How to name your Moodle installation
75 "integration": "Integration",
83 // CI Server related settings
85 "url": "http://integration.moodle.org",
89 // The information for integrating MDK with Jira
91 "url": "https://tracker.moodle.org/",
94 "repositoryurl" : "Pull from Repository",
96 "branch" : "Pull 2.2 Branch",
97 "diffurl" : "Pull 2.2 Diff URL"
100 "branch" : "Pull 2.3 Branch",
101 "diffurl" : "Pull 2.3 Diff URL"
104 "branch" : "Pull 2.4 Branch",
105 "diffurl" : "Pull 2.4 Diff URL"
108 "branch" : "Pull 2.5 Branch",
109 "diffurl" : "Pull 2.5 Diff URL"
112 "branch" : "Pull 2.6 Branch",
113 "diffurl" : "Pull 2.6 Diff URL"
116 "branch" : "Pull 2.7 Branch",
117 "diffurl" : "Pull 2.7 Diff URL"
120 "branch" : "Pull 2.8 Branch",
121 "diffurl" : "Pull 2.8 Diff URL"
124 "branch" : "Pull 2.9 Branch",
125 "diffurl" : "Pull 2.9 Diff URL"
128 "branch" : "Pull 3.0 Branch",
129 "diffurl" : "Pull 3.0 Diff URL"
132 "branch" : "Pull Master Branch",
133 "diffurl" : "Pull Master Diff URL"
137 // The base for diff URLs, you can use the following wildcards:
138 // - %branch%: The branch name;
139 // - %stablebranch%: The stable branch (MOODLE_23_STABLE, MOODLE_24_STABLE, master, ...);
140 // - %headcommit%: The head commit.
141 // This is used to populate the fields on the tracker issue.
142 "diffUrlTemplate": "https://github.com/YourGitHub/moodle/compare/%headcommit%...%branch%",
144 // The public acccess URL of your repository. It is used to populate the fields on the tracker issue,
145 // and as the common read-only URL of the remote 'myRemote'.
146 "repositoryUrl": "git://github.com/YourGitHub/moodle.git",
148 // Plugins related settings.
151 // Set this setting to false to disable the caching of plugins locally.
154 // Local repository for plugins missing on the database.
158 "downloadurl": "https://github.com/FMCorz/moodle-auth_mdk/archive/master.zip"
164 // The scheme to set during an install (http or https)
166 // The host name to set during an install
168 // Path to your Moodle instances, http://host/path/ should point to dirs.www.
170 // Moodle admin login
172 // Moodle admin password
174 // What to call your remote, the one pointing to remotes.mine
175 "myRemote": "github",
176 // What to call the upstream remote, the one pointing to the official repositoriy (stable or integration)
177 "upstreamRemote": "origin",
179 // Config setting that should be set in config.php when an instance is being installed.
181 // The following example will set CFG->divertallemailsto to "root@localhost.local".
182 // "divertallemailsto": "root@localhost.local"
185 // Behat related settings
188 // From 2.7 Behat requires a different wwwroot than the one set in config.php.
189 // MDK assumes that the only thing that will differ between the wwwroot and
190 // behat wwwroot is the host, nothing else. Use a ServerAlias or /etc/hosts entries.
192 // The number of seconds the behat command will sleep after launching the PHP Server, or Selenium.
196 // The name of the data directory (in dirs.storage/instanceName/)
197 "dataDir": "moodledata",
198 // The name of the www directory (in dirs.storage/instanceName/)
200 // The name of the extra directory, it will be used to store different things of an instance (in dirs.storage/instanceName/)
202 // The name of the web accessible directory that MDK uses to give access to the extraDirs (created in dirs.www/).
205 // The default engine to use when not specified
206 "defaultEngine": "mysqli",
209 "git": "/usr/bin/git",
211 "php": "/usr/bin/php",
213 "java": "/usr/bin/java",
215 "grunt": "/usr/local/bin/grunt",
217 "recess": "/usr/local/bin/recess",
219 "lessc": "/usr/local/bin/lessc",
221 "shifter": "/usr/bin/shifter",
223 "yuidoc": "/usr/local/bin/yuidoc",
224 // Path to your favourite editor. Set to null to guess it from the System environment.
227 // Debug level of MDK. 'debug', 'info', 'warning', 'error' or 'critical'.
230 // When enabled, MDK will try to be smart to identify the parent commit of the current branch. Instead of
231 // using the stable branch it will match the branch name with an issue number and compare it with the commit
232 // messages. The first commit message that does not match the pattern MDL-12345 will be used as the headcommit.
233 "smartHeadCommitSearch": true,
235 // Limit the search of the head commit to the last n commits.
236 "smartHeadCommitLimit": 50,
238 // Name of the symlink pointing to the data directory to create in the www directory
239 // during an instance creation. If false, the symlink won't be created.
240 "symlinkToData": false,
242 // By default MDK caches origin as a local mirror. It is much faster when it comes to upgrading
243 // a couple of instances at the same time. MDK will update the mirror as often as it needs to,
244 // but if you are not using MDK to upgrade your instances, you might want to disable this
245 // functionality to only rely on the real origin. Creating new instances will not be affected
247 "useCacheAsUpstreamRemote": true,
249 // You should not edit this, this is the branch that is considered as master by developers.
252 // Aliases for MDK commands.
253 // An alias starting with a ! will be executed through the command line. Those also
254 // can use placeholders for arguments: $1, $2, ...
256 // "upall": "update --all". `mdk upall` will execute `mdk update --all`
257 // "ls": "!ls -al". `mdk ls` will execute `ls -al`
261 "theme": "!mdk info -v theme -e $1 $2"