doiphode / moodle-tool_clearbackupfiles

Admin tool to clear all backup files from server.
GNU General Public License v3.0
2 stars 3 forks source link

add support for travis ci #5

Closed danmarsden closed 1 month ago

danmarsden commented 4 years ago

Some of the code precheck tests run by the Moodle.org plugins db See: https://moodle.org/plugins/pluginversion.php?id=21504

can be run via travis-ci on each commit in your github repo. Enabling Travis integration helps you to make sure future changes to your plugin will continue to follow the guidelines.

More information on this is here: https://moodle.org/mod/forum/discuss.php?d=323384

but the short version: grab this file: https://github.com/moodlerooms/moodle-plugin-ci/blob/master/.travis.dist.yml rename it as .travis.yml and put in the root of your github directory. Go to: https://travis-ci.org/profile/YOUR_GITHUB_USERNAME Flick the switch for this repo.

then on every commit you make to github it will fire off a request to travis to run the tests in .travis.yml and will give you traffic lights beside each commit and generate a report.

something else you might want to change: in .travis.yml the default file has this line:

env: global:

MOODLE_BRANCH=MOODLE_38_STABLE you might want to add other branches to that list - so you might want to change it something like:

env: global: MOODLE_BRANCH=MOODLE_38_STABLE MOODLE_BRANCH=MOODLE_36_STABLE MOODLE_BRANCH=MOODLE_37_STABLE

danmarsden commented 3 years ago

please note - travis has now been mostly deprecated as it is no longer free. you can still implement github actions to perform the same task: https://moodlehq.github.io/moodle-plugin-ci/#github-actions