Skip to content

Consider adding travis-ci support to your github repo #3

Description

@danmarsden

Travis-ci allows you to run standard Moodle tests on every commit and to see how well your code complies with the Moodle coding standards.
Moodle plugins db runs many of these test on uploading your plugin too:
https://moodle.org/plugins/pluginversion.php?id=16227&smurf=html#phpdoc

You can read more about using travis in your plugin here:
https://moodle.org/mod/forum/discuss.php?d=323384

Or for the short version on how to enable it...
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/dired-ufla
Flick the switch on your plugin

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_32_STABLE
you might want to add other branches to that list (or remove 32_STABLE because it's not supported.) so you might want to change it something like:

env:
global:

MOODLE_BRANCH=MOODLE_33_STABLE
MOODLE_BRANCH=MOODLE_34_STABLE
MOODLE_BRANCH=MOODLE_35_STABLE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions