Closed junpataleta closed 6 years ago
From https://moodlerooms.github.io/moodle-plugin-ci/TravisFileExplained.html
# This step runs Grunt tasks on the plugin. By default, it tries to run
# tasks relevant to your plugin and Moodle version, but you can run
# specific tasks by passing them as options,
# EG: moodle-plugin-ci grunt -t task1 -t task2
- moodle-plugin-ci grunt
So, try this out (or some variation of it):
- moodle-plugin-ci grunt -t eslint:amd -t uglify
Hope that helps, cheers!
Aha! Thanks, that worked!
I was kind of expecting for the moodle-plugin-ci grunt task to only run the tasks defined in Gruntfile.js, but all good. Please feel free to close this ticket.
Thanks again!
Yeah, due to being able to define whatever you want in Grunt, it makes it hard to discover available tasks and there isn't always a default option that works well. Glad it worked for you, cheers!
Hello there. Thanks for this really helpful tool!
So I have this Gruntfile.js, where I only registered "eslint:amd" and "uglify" tasks to run. When I execute grunt locally, it works okay.
However, when the task is being run in Travis by the moodle-plugin-ci, I can see that the stylelint task is still being executed, which then results in a failed build:
Not sure if it is an issue with the moodle-plugin-ci, or if I'm missing something.
Thanks!