Travis fails to build
Closed this issue · 4 comments
I upgraded GemFile and GemFile.lock in order to avoid security vulnerabilities. I can generate the Github pages locally, but the build on Travis fails. Don't know how to fix this. Don't know if this has to do with my updating the GemFiles or not.
Details:
I did a first unsuccessful attempt, just changing the versions of ffi and jekyll as suggested in the security alert, and without building locally. But this caused Travis to fail (Travis request 180).
Then I removed that commit, but again, Travis failed (Travis request 181), even though this state built earlier (in October - request 179). Then, I installed Ruby on my computer, got the build to work locally, and in that process updated all the gems that "make serve" complained about. Finally, I got the web site running locally, and everything looked fine. I then committed and pushed the changes, but now the Travis build fails.
Hypothesis 1: Could be that the specific Travis branch added to .travis.yml for issue #20 (commit f9254ff) should be removed. This fix has been solved by later versions of Travis, so it should no longer be needed. Perhaps the fix is somehow incompatible with the newer version of jekyll.
Hypothesis 2: Travis uses an older version of Ruby than the one I have been testing locally with. (I use ruby 2.6.0, Travis uses 2.4.1 according to the log of the build). Perhaps that older version of Ruby is incompatible with the updated gem versions.
Great! Meanwhile, I'll try fixing the two potential culprits above.
Removing the specific branch used for the travis deployment package fixed the issue!!!