-
Notifications
You must be signed in to change notification settings - Fork 47
Typical workflows
Frédéric Massart edited this page Mar 20, 2014
·
1 revision
Here are some typical workflows. Keep in mind that any command followed by --help
will give you more information on what can be done with it.
mdk create --version 26 --install --engine pgsql --run dev
-
create --version 26
will clone a new instance of the latest Moodle 2.6 -
--install
will run the installation script -
--engine pgsql
tells the installer to use PostgreSQL as the DB engine (does not work without --install) -
--run dev
will execute the scriptdev
after installing the instance
mdk fix 12345
... commit your work ...
mdk push --update-tracker
-
fix
creates a branch from the latest stable version -
push --update-tracker
pushes the branch to github, and updates the tracker issue
... from the branch you want to backport ...
mdk backport --versions 25 26 --push --update-tracker
- Backports the patch to the
versions
2.5 and 2.6 -
--push
pushes the branch to github -
--update-tracker
updates the tracker issue
mdk update --all --upgrade
-
update
will checkout the stable branch (master
,MOODLE_26_STABLE
, ...) -
--all
specifies to work on all the instances -
--upgrade
will also run the upgrade process after a successful update
mdk purge
- Purges the cache
mdk uninstall
mdk install
-
uninstall
will drop the database and the content of dataroot -
install
runs the installer with the default settings
mdk run dev
- Runs the script
dev
which sets up most settings developers are interested in
mdk run users
- Runs the script
users
which creates some potential students, teachers and managers (s1 to s10, t1 to t3, and m1 to m3)
mdk run enrol
- Runs the script
enrol
which enrols, in all courses, the users starting with ans
as students, at
as teachers andm
as managers
mdk css --compile
- Compiles the .less files of theme/bootstrapbase
mdk pull --testing 12345
- Creates a branch named MDL-12345-master-test from the latest stable
- Pulls the patch from the tracker issue MDL-12345
mdk phpunit --run
-
phpunit
sets up various settings and installs PHPUnit fromcomposer
-
--run
will run the entire test suite
mdk behat --run --disable
-
behat
sets up various settings and installs Behat fromcomposer
-
--run
will run the entire test suite -
--disable
will disable Behat after running the tests (no longer required from 2.7)