open-lms-open-source / moodle-plugin-ci

Assist with running a Moodle plugin in Travis CI
https://blackboard-open-source.github.io/moodle-plugin-ci/
GNU General Public License v3.0
42 stars 37 forks source link

Additional check_database_schema.php check #96

Open brendanheywood opened 5 years ago

brendanheywood commented 5 years ago

We should be able to run a check_database_schema.php check to confirm that all new installs and upgrades are in sync.

So the CI plugin should grab the earliest verion of install.xml, install it, then checkout the latest version on HEAD and run the upgrade script, then run check_database_schema.php and confirm it is empty

Ideally this is zero config, but maybe we need to tell travis the commit hash of the initial commit where the first install.xml file was introduced

Peterburnett commented 5 years ago

A patch has been submitted to include this check in PR #102