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

File is stale and needs to be rebuilt - checksum failing on one file. Using gruntfile from Model 3.1.10 #74

Closed IADLearning closed 6 years ago

IADLearning commented 6 years ago

I have created Moodle plugin and added your travis.yml file. My repo is located at:

The repo contains two custom JS files in the amd/src directory:

To generate the minified version of them, I use the standard grunt task coming with Moodle 3.1.10 (latest 3.1). The process works with no issues and I get the .min version of both files.

Nevertheless, when I run the Travis CI script, I am always getting an error on one of them:

File is stale and needs to be rebuilt: amd/build/iadlearning.min.js

Looking at the code, I have seen that the error could be related to the fact that the sha1 hash of my file is different from the one you are generating.

My minified file works with no issues, and comes from the grunt task file defined by Moodle, but still generating an error.

Don't know what else I could do? Do you have any hints of why this could be happening?

Many thanks in advance.

error on js file

polothy commented 6 years ago

Version 2 of this tool supports only Moodle 3.2 or later. I'm guessing it compiles slightly differently in Moodle 3.2.

IADLearning commented 6 years ago

This was exactly the issue. When I moved to Moodle 3.2 it worked really excellent. Many thanks for your support.